<!-- HTML header for doxygen 1.8.9.1-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>ROSS: core/tw-setup.c Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <a href="https://github.com/ROSS-org/ROSS">
   <div id="projectname">ROSS
   </div>
   </a>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_af18cf245e3394ab3b436135935cfd6e.html">core</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">tw-setup.c</div>  </div>
</div><!--header-->
<div class="contents">
<a href="tw-setup_8c.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="ross_8h.html">ross.h</a>&gt;</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="lz4_8h.html">lz4.h</a>&quot;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &lt;sys/stat.h&gt;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * @file tw-setup.c</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * @brief tw_define_lps is defined here!</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div>
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="tw-setup_8c.html#a2f41060d9641efc71ebefd63bbae1779">   10</a></span>&#160;<span class="preprocessor">#define VERIFY_MAPPING 0</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="keyword">static</span> <a class="code" href="structtw__pe.html">tw_pe</a> *<a class="code" href="tw-setup_8c.html#a33b10808894f8c4d429e391810d96e08">setup_pes</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="tw-setup_8c.html#ad7c514cd29ed14a2698dc3f1c3a0203b">   13</a></span>&#160;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="tw-setup_8c.html#ad7c514cd29ed14a2698dc3f1c3a0203b">nkp_per_pe</a> = 16;</div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="tw-setup_8c.html#a67a33e9fdd9f680a1790fece8b07699a">   14</a></span>&#160;<span class="keyword">static</span> <a class="code" href="aarch64_8h.html#abcd6b97b84bebf1f961f85cd24b56c60">tw_clock</a> <a class="code" href="tw-setup_8c.html#a67a33e9fdd9f680a1790fece8b07699a">init_start</a> = 0;</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="tw-setup_8c.html#a475f025c5a2abfaf6e0963ce5360477c">   16</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="structtw__optdef.html">tw_optdef</a> <a class="code" href="tw-setup_8c.html#a475f025c5a2abfaf6e0963ce5360477c">kernel_options</a>[] = {</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    <a class="code" href="tw-opts_8h.html#a0e45b7a88a51dca3fe99d31aae9636c4">TWOPT_GROUP</a>(<span class="stringliteral">&quot;ROSS Kernel&quot;</span>),</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;    <a class="code" href="tw-opts_8h.html#a0d00417e3bef0d001f256f846c72838d">TWOPT_UINT</a>(<span class="stringliteral">&quot;synch&quot;</span>, <a class="code" href="ross-extern_8h.html#ae22db4d4e754eff64535402f5fa60a5f">g_tw_synchronization_protocol</a>, <span class="stringliteral">&quot;Sychronization Protocol: SEQUENTIAL=1, CONSERVATIVE=2, OPTIMISTIC=3, OPTIMISTIC_DEBUG=4, OPTIMISTIC_REALTIME=5&quot;</span>),</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    <a class="code" href="tw-opts_8h.html#a0d00417e3bef0d001f256f846c72838d">TWOPT_UINT</a>(<span class="stringliteral">&quot;nkp&quot;</span>, <a class="code" href="tw-setup_8c.html#ad7c514cd29ed14a2698dc3f1c3a0203b">nkp_per_pe</a>, <span class="stringliteral">&quot;number of kernel processes (KPs) per pe&quot;</span>),</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    <a class="code" href="tw-opts_8h.html#aeb3c6cf7dfe9b1b9927905a7f5d86855">TWOPT_DOUBLE</a>(<span class="stringliteral">&quot;end&quot;</span>, <a class="code" href="ross-extern_8h.html#aedd6d883bb5b01f0d5c1121f48b0477e">g_tw_ts_end</a>, <span class="stringliteral">&quot;simulation end timestamp&quot;</span>),</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    <a class="code" href="tw-opts_8h.html#a0d00417e3bef0d001f256f846c72838d">TWOPT_UINT</a>(<span class="stringliteral">&quot;batch&quot;</span>, <a class="code" href="ross-extern_8h.html#ad2b9212f634d736cfcdf03b9a3b3a818">g_tw_mblock</a>, <span class="stringliteral">&quot;messages per scheduler block&quot;</span>),</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    <a class="code" href="tw-opts_8h.html#a0d00417e3bef0d001f256f846c72838d">TWOPT_UINT</a>(<span class="stringliteral">&quot;extramem&quot;</span>, <a class="code" href="ross-extern_8h.html#a17c791c2b25a6f00f8244f7f1244b9ca">g_tw_events_per_pe_extra</a>, <span class="stringliteral">&quot;Number of extra events allocated per PE.&quot;</span>),</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    <a class="code" href="tw-opts_8h.html#a0d00417e3bef0d001f256f846c72838d">TWOPT_UINT</a>(<span class="stringliteral">&quot;buddy-size&quot;</span>, <a class="code" href="ross-extern_8h.html#a86d0fe2c4d7b1be618d6cce801f085ee">g_tw_buddy_alloc</a>, <span class="stringliteral">&quot;delta encoding buddy system allocation (2^X)&quot;</span>),</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    <a class="code" href="tw-opts_8h.html#a0d00417e3bef0d001f256f846c72838d">TWOPT_UINT</a>(<span class="stringliteral">&quot;lz4-knob&quot;</span>, <a class="code" href="ross-extern_8h.html#a44046c72a5bace26ffd7c10ac06ba5f3">g_tw_lz4_knob</a>, <span class="stringliteral">&quot;LZ4 acceleration factor (higher = faster)&quot;</span>),</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    <a class="code" href="tw-opts_8h.html#aeb3c6cf7dfe9b1b9927905a7f5d86855">TWOPT_DOUBLE</a>(<span class="stringliteral">&quot;cons-lookahead&quot;</span>, <a class="code" href="ross-extern_8h.html#ae6211f101eb9694fec8f350c874ba6cd">g_tw_lookahead</a>, <span class="stringliteral">&quot;Set g_tw_lookahead&quot;</span>),</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    <a class="code" href="tw-opts_8h.html#a21cd827141f4fc64117c38b804846903">TWOPT_ULONGLONG</a>(<span class="stringliteral">&quot;max-opt-lookahead&quot;</span>, <a class="code" href="ross-extern_8h.html#aeb7d56717189f79b0199a840b0ae6629">g_tw_max_opt_lookahead</a>, <span class="stringliteral">&quot;Optimistic simulation: maximum lookahead allowed in virtual clock time&quot;</span>),</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#ifdef AVL_TREE</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor"></span>    <a class="code" href="tw-opts_8h.html#a0d00417e3bef0d001f256f846c72838d">TWOPT_UINT</a>(<span class="stringliteral">&quot;avl-size&quot;</span>, <a class="code" href="ross-extern_8h.html#acd6509dd1d3e2ea0298ef3e2ecaf0ef0">g_tw_avl_node_count</a>, <span class="stringliteral">&quot;AVL Tree contains 2^avl-size nodes&quot;</span>),</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor"></span>    <a class="code" href="tw-opts_8h.html#a38209b0e7568d41f5448ae5f884290a4">TWOPT_END</a>()</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;};</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="tw-setup_8c.html#a7d395f5590701f5526a161fcb1261b03">   33</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="tw-setup_8c.html#a7d395f5590701f5526a161fcb1261b03">tw_init</a>(<span class="keywordtype">int</span> *argc, <span class="keywordtype">char</span> ***argv) {</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <a class="code" href="tw-setup_8c.html#a67a33e9fdd9f680a1790fece8b07699a">init_start</a> = <a class="code" href="aarch64_8h.html#a450cf25fa5291629087ca4198de55757">tw_clock_read</a>();</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#if HAVE_CTIME</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor"></span>    time_t raw_time;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <a class="code" href="tw-opts_8c.html#adb4b8bc6800f3d900747d4adeda4ac92">tw_opt_add</a>(<a class="code" href="network-mpi_8c.html#a3db61a41bb6a85964e22e5488038b02e">tw_net_init</a>(argc, argv));</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="comment">// Print out the command-line so we know what we passed in</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="ross-kernel-inline_8h.html#a0e8a2538926cdb59af049a899566de6c">tw_ismaster</a>()) {</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;        <span class="keywordflow">for</span> (i = 0; i &lt; *argc; i++) {</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;            printf(<span class="stringliteral">&quot;%s &quot;</span>, (*argv)[i]);</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        }</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        printf(<span class="stringliteral">&quot;\n\n&quot;</span>);</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    }</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="comment">// Print our revision if we have it</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="preprocessor">#ifdef ROSS_VERSION</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="preprocessor"></span>    <span class="keywordflow">if</span> (<a class="code" href="ross-kernel-inline_8h.html#a0e8a2538926cdb59af049a899566de6c">tw_ismaster</a>()) {</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor">#if HAVE_CTIME</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="preprocessor"></span>        time(&amp;raw_time);</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        printf(<span class="stringliteral">&quot;%s\n&quot;</span>, ctime(&amp;raw_time));</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="preprocessor"></span>        printf(<span class="stringliteral">&quot;ROSS Version: %s\n\n&quot;</span>, <a class="code" href="config_8h.html#a944f247b3ff235fb69be8ddd70c326e0">ROSS_VERSION</a>);</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    }</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <a class="code" href="tw-opts_8c.html#adb4b8bc6800f3d900747d4adeda4ac92">tw_opt_add</a>(kernel_options);</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <a class="code" href="tw-opts_8c.html#adb4b8bc6800f3d900747d4adeda4ac92">tw_opt_add</a>(<a class="code" href="mpi__allreduce_8c.html#a5f11084158c441f3119d608cb25027de">tw_gvt_setup</a>());</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <a class="code" href="tw-opts_8c.html#adb4b8bc6800f3d900747d4adeda4ac92">tw_opt_add</a>(<a class="code" href="aarch64_8c.html#ad791d6ac5a640e8a175a13c72aa3d8e3">tw_clock_setup</a>());</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <a class="code" href="tw-opts_8c.html#adb4b8bc6800f3d900747d4adeda4ac92">tw_opt_add</a>(<a class="code" href="st-instrumentation_8c.html#ab95b216a927e7de0666b153bd4b113ea">st_inst_opts</a>());</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="preprocessor">#ifdef USE_DAMARIS</span></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="preprocessor"></span>    <a class="code" href="tw-opts_8c.html#adb4b8bc6800f3d900747d4adeda4ac92">tw_opt_add</a>(st_damaris_opts());</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="preprocessor"></span>    <a class="code" href="tw-opts_8c.html#adb4b8bc6800f3d900747d4adeda4ac92">tw_opt_add</a>(<a class="code" href="specialized-lps_8c.html#a0e12bafe1e2aa5c21f7544dfc358ecc3">st_special_lp_opts</a>());</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="preprocessor">#ifdef USE_RIO</span></div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="preprocessor"></span>    <a class="code" href="tw-opts_8c.html#adb4b8bc6800f3d900747d4adeda4ac92">tw_opt_add</a>(<a class="code" href="io-mpi_8c.html#a4c9ad55528f8f4bbfb46efc4c4b30acf">io_opts</a>);</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="comment">// by now all options must be in</span></div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <a class="code" href="tw-opts_8c.html#a0e72feddf001b8ffcaf47499f7f5d507">tw_opt_parse</a>(argc, argv);</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="preprocessor">#ifdef USE_DAMARIS</span></div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="preprocessor"></span>    st_damaris_ross_init();</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <span class="keywordflow">if</span> (!g_st_ross_rank) <span class="comment">// Damaris ranks only</span></div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    {</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <span class="keywordflow">if</span>(<a class="code" href="ross-kernel-inline_8h.html#a0e8a2538926cdb59af049a899566de6c">tw_ismaster</a>())</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    {</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;        <span class="keyword">struct </span>stat buffer;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        <span class="keywordtype">int</span> csv_check = stat(<span class="stringliteral">&quot;ross.csv&quot;</span>, &amp;buffer);</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        <span class="keywordflow">if</span> (NULL == (<a class="code" href="ross-extern_8h.html#a8747c3bfc331d131dd546883b336feef">g_tw_csv</a> = fopen(<span class="stringliteral">&quot;ross.csv&quot;</span>, <span class="stringliteral">&quot;a&quot;</span>)))</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;            <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;Unable to open: ross.csv\n&quot;</span>);</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        <span class="keywordflow">if</span> (csv_check == -1)</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        {</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;            fprintf(<a class="code" href="ross-extern_8h.html#a8747c3bfc331d131dd546883b336feef">g_tw_csv</a>, <span class="stringliteral">&quot;total_pe,total_kp,total_lp,end_ts,mapping,model_events,network_events,total_events,&quot;</span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;                    <span class="stringliteral">&quot;runtime,events_processed,events_aborted,events_rb,pe_event_ties,eff,send_loc_remote,&quot;</span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;                    <span class="stringliteral">&quot;percent_loc,send_net_remote,percent_net,rb_total,rb_primary,rb_secondary,fc_attempts,&quot;</span></div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;                    <span class="stringliteral">&quot;num_gvt,net_events,event_rate,events_past_end,event_alloc,memory_alloc,memory_wasted,&quot;</span></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;                    <span class="stringliteral">&quot;remote_sends,remote_recvs,pe_struct,kp_struct,lp_struct,lp_model_struct,lp_rngs,&quot;</span></div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;                    <span class="stringliteral">&quot;total_lp_size,event_struct,event_struct_model,init_time,pq_time,avl_time,lz4_time,&quot;</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;                    <span class="stringliteral">&quot;buddy_time,&quot;</span>);</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="preprocessor">#ifdef USE_RIO</span></div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="preprocessor"></span>            fprintf(<a class="code" href="ross-extern_8h.html#a8747c3bfc331d131dd546883b336feef">g_tw_csv</a>, <span class="stringliteral">&quot;rio_load,rio_init,&quot;</span>);</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="preprocessor"></span>            fprintf(<a class="code" href="ross-extern_8h.html#a8747c3bfc331d131dd546883b336feef">g_tw_csv</a>, <span class="stringliteral">&quot;event_proc_time,event_cancel_time,event_abort_time,gvt_time,fc_time,&quot;</span></div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;                    <span class="stringliteral">&quot;primary_rb_time,net_read_time,net_other_time,inst_comp_time,inst_write_time,total_time&quot;</span>);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="specialized-lps_8c.html#af684a7b76fde8ed0e32b8a155af94f92">g_st_use_analysis_lps</a>)</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;                fprintf(<a class="code" href="ross-extern_8h.html#a8747c3bfc331d131dd546883b336feef">g_tw_csv</a>, <span class="stringliteral">&quot;,model_nevent_proc,model_nevent_rb,model_net_events,model_eff,&quot;</span></div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;                        <span class="stringliteral">&quot;alp_nevent_proc,alp_nevent_rb,alp_net_events,alp_eff&quot;</span>);</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;            fprintf(<a class="code" href="ross-extern_8h.html#a8747c3bfc331d131dd546883b336feef">g_tw_csv</a>, <span class="stringliteral">&quot;\n&quot;</span>);</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        }</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    }</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <span class="comment">//tw_opt_print();</span></div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    <a class="code" href="network-mpi_8c.html#a625a50a6a03701b067693d7dc5ed483b">tw_net_start</a>();</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <a class="code" href="mpi__allreduce_8c.html#a0609349515ccf596bffb1efb59ecd2ea">tw_gvt_start</a>();</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="preprocessor">#ifdef USE_DAMARIS</span></div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="preprocessor"></span>    } <span class="comment">// end of if(g_st_ross_rank)</span></div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="preprocessor"></span>}</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="tw-setup_8c.html#abeb5dbef977462c62de62c5ad5ff6dc2">  122</a></span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="tw-setup_8c.html#abeb5dbef977462c62de62c5ad5ff6dc2">early_sanity_check</a>(<span class="keywordtype">void</span>) {</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <span class="keywordflow">if</span> (!<a class="code" href="ross-extern_8h.html#ab8bd876929690758e922961bcc16cd64">g_tw_nlp</a>) {</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;need at least one LP&quot;</span>);</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    }</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    <span class="keywordflow">if</span> (!<a class="code" href="tw-setup_8c.html#ad7c514cd29ed14a2698dc3f1c3a0203b">nkp_per_pe</a>) {</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;        <a class="code" href="ross-extern_8h.html#a9fdd5173071664ba458fbd0d2419713e">tw_printf</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;number of KPs (%u) must be &gt;= 1, adjusting.&quot;</span>, <a class="code" href="ross-extern_8h.html#a4a237c68db5a0325e986d3710088d427">g_tw_nkp</a>);</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;        <a class="code" href="ross-extern_8h.html#a4a237c68db5a0325e986d3710088d427">g_tw_nkp</a> = 1;</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    }</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;}</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="comment"> * map: map LPs-&gt;KPs-&gt;PEs linearly</span></div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="tw-setup_8c.html#aec955754eb6d560d7bc1454aeaaa516f">  135</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="tw-setup_8c.html#aec955754eb6d560d7bc1454aeaaa516f">map_linear</a>(<span class="keywordtype">void</span>) {</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nlp_per_kp;</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    <a class="code" href="ross_8h.html#a911515dff2fb79886a16ed44df5f9d20">tw_lpid</a>  lpid;</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <a class="code" href="ross-types_8h.html#a1c8bf5a99e9de5022cdaa304f3979e57">tw_kpid</a>  kpid;</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> j;</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    <span class="comment">// may end up wasting last KP, but guaranteed each KP has == nLPs</span></div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    nlp_per_kp = (int)ceil((<span class="keywordtype">double</span>) <a class="code" href="ross-extern_8h.html#ab8bd876929690758e922961bcc16cd64">g_tw_nlp</a> / (double) <a class="code" href="ross-extern_8h.html#a4a237c68db5a0325e986d3710088d427">g_tw_nkp</a>);</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    <span class="keywordflow">if</span>(!nlp_per_kp) {</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;        <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;Not enough KPs defined: %d&quot;</span>, g_tw_nkp);</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    }</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    <a class="code" href="ross-extern_8h.html#ae8a20282effaa19f11bcaada18b5427d">g_tw_lp_offset</a> = <a class="code" href="ross-extern_8h.html#a83ae3f8b8b94935a1dbdfa2d2552f508">g_tw_mynode</a> * <a class="code" href="ross-extern_8h.html#ab8bd876929690758e922961bcc16cd64">g_tw_nlp</a>;</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;<span class="preprocessor">#if VERIFY_MAPPING</span></div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;<span class="preprocessor"></span>    printf(<span class="stringliteral">&quot;NODE %d: nlp %lld, offset %lld\n&quot;</span>, <a class="code" href="ross-extern_8h.html#a83ae3f8b8b94935a1dbdfa2d2552f508">g_tw_mynode</a>, g_tw_nlp, <a class="code" href="ross-extern_8h.html#ae8a20282effaa19f11bcaada18b5427d">g_tw_lp_offset</a>);</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    printf(<span class="stringliteral">&quot;\tPE %d\n&quot;</span>, <a class="code" href="ross-extern_8h.html#a2f67789cc425e7d839fa4b983f5b8505">g_tw_pe</a>-&gt;<a class="code" href="structtw__pe.html#a8a57f2123eddf6a195d82ecc781093e6">id</a>);</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    <span class="keywordflow">for</span>(kpid = 0, lpid = 0; kpid &lt; <a class="code" href="tw-setup_8c.html#ad7c514cd29ed14a2698dc3f1c3a0203b">nkp_per_pe</a>; kpid++) {</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        <a class="code" href="ross-extern_8h.html#aafb58a114f017b8491090ea372312684">tw_kp_onpe</a>(kpid, <a class="code" href="ross-extern_8h.html#a2f67789cc425e7d839fa4b983f5b8505">g_tw_pe</a>);</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;<span class="preprocessor">#if VERIFY_MAPPING</span></div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;<span class="preprocessor"></span>        printf(<span class="stringliteral">&quot;\t\tKP %d&quot;</span>, kpid);</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;        <span class="keywordflow">for</span>(j = 0; j &lt; nlp_per_kp &amp;&amp; lpid &lt; <a class="code" href="ross-extern_8h.html#ab8bd876929690758e922961bcc16cd64">g_tw_nlp</a>; j++, lpid++) {</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;            <a class="code" href="ross-extern_8h.html#af1158541bc133faae0dc87d8c319bec8">tw_lp_onpe</a>(lpid, <a class="code" href="ross-extern_8h.html#a2f67789cc425e7d839fa4b983f5b8505">g_tw_pe</a>, <a class="code" href="ross-extern_8h.html#ae8a20282effaa19f11bcaada18b5427d">g_tw_lp_offset</a>+lpid);</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;            <a class="code" href="ross-extern_8h.html#ab779ee7648ae0cf0931fce717b4401b6">tw_lp_onkp</a>(<a class="code" href="ross-extern_8h.html#a43d0a4ccc4cb71f94675a4b64a7c60c0">g_tw_lp</a>[lpid], <a class="code" href="ross-extern_8h.html#a64132b3acc0476622c31d7dc1676d227">g_tw_kp</a>[kpid]);</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;<span class="preprocessor">#if VERIFY_MAPPING</span></div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;<span class="preprocessor"></span>            <span class="keywordflow">if</span>(0 == j % 20) {</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;                printf(<span class="stringliteral">&quot;\n\t\t\t&quot;</span>);</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;            }</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;            printf(<span class="stringliteral">&quot;%lld &quot;</span>, lpid+<a class="code" href="ross-extern_8h.html#ae8a20282effaa19f11bcaada18b5427d">g_tw_lp_offset</a>);</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;<span class="preprocessor"></span>        }</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;<span class="preprocessor">#if VERIFY_MAPPING</span></div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;<span class="preprocessor"></span>        printf(<span class="stringliteral">&quot;\n&quot;</span>);</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;<span class="preprocessor"></span>    }</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    <span class="keywordflow">if</span>(!<a class="code" href="ross-extern_8h.html#a43d0a4ccc4cb71f94675a4b64a7c60c0">g_tw_lp</a>[g_tw_nlp-1]) {</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;        <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;Not all LPs defined! (g_tw_nlp=%d)&quot;</span>, g_tw_nlp);</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    }</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;    <span class="keywordflow">if</span>(<a class="code" href="ross-extern_8h.html#a43d0a4ccc4cb71f94675a4b64a7c60c0">g_tw_lp</a>[g_tw_nlp-1]-&gt;gid != <a class="code" href="ross-extern_8h.html#ae8a20282effaa19f11bcaada18b5427d">g_tw_lp_offset</a> + g_tw_nlp - 1) {</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;        <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;LPs not sequentially enumerated!&quot;</span>);</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    }</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;}</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div>
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="tw-setup_8c.html#ab70815e9b532e3d9a85c0a3366477def">  189</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="tw-setup_8c.html#ab70815e9b532e3d9a85c0a3366477def">map_round_robin</a>(<span class="keywordtype">void</span>) {</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    <a class="code" href="structtw__pe.html">tw_pe</a>   * <a class="code" href="avl__tree_8c.html#ac4c639748d4d5a271d6c54a18f614605">pe</a> = <a class="code" href="ross-extern_8h.html#a2f67789cc425e7d839fa4b983f5b8505">g_tw_pe</a>; <span class="comment">// ASSUMPTION: only 1 pe</span></div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    <a class="code" href="ross-types_8h.html#a1c8bf5a99e9de5022cdaa304f3979e57">tw_kpid</a> kpid;</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    <a class="code" href="ross_8h.html#a911515dff2fb79886a16ed44df5f9d20">tw_lpid</a> lpid;</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>  i;</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    <span class="comment">// ASSUMPTION: g_tw_nlp is the same on each rank</span></div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    <span class="keywordtype">int</span> lp_stride = <a class="code" href="network-mpi_8c.html#a2818efb70df48e5e29d3dacb3e2de009">tw_nnodes</a>();</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    <span class="keywordtype">int</span> lp_offset = <a class="code" href="ross-extern_8h.html#a83ae3f8b8b94935a1dbdfa2d2552f508">g_tw_mynode</a>;</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    <span class="keywordflow">for</span>(i = 0, lpid=lp_offset; i &lt; <a class="code" href="ross-extern_8h.html#ab8bd876929690758e922961bcc16cd64">g_tw_nlp</a>; i++, lpid+=lp_stride) {</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;        kpid = i % <a class="code" href="ross-extern_8h.html#a4a237c68db5a0325e986d3710088d427">g_tw_nkp</a>;</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;        <a class="code" href="ross-extern_8h.html#af1158541bc133faae0dc87d8c319bec8">tw_lp_onpe</a>(i, pe, lpid);</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;        <a class="code" href="ross-extern_8h.html#aafb58a114f017b8491090ea372312684">tw_kp_onpe</a>(kpid, pe);</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;        <a class="code" href="ross-extern_8h.html#ab779ee7648ae0cf0931fce717b4401b6">tw_lp_onkp</a>(<a class="code" href="ross-extern_8h.html#a43d0a4ccc4cb71f94675a4b64a7c60c0">g_tw_lp</a>[i], <a class="code" href="ross-extern_8h.html#a64132b3acc0476622c31d7dc1676d227">g_tw_kp</a>[kpid]);</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;<span class="preprocessor">#if VERIFY_MAPPING</span></div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;<span class="preprocessor"></span>        printf(<span class="stringliteral">&quot;LP %4d KP %4d PE %4d\n&quot;</span>, lpid, kpid, pe-&gt;<a class="code" href="structtw__pe.html#a8a57f2123eddf6a195d82ecc781093e6">id</a>);</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;<span class="preprocessor"></span>    }</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;}</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;<span class="comment"> * IMPORTANT: This function sets the value for g_tw_nlp which is a rather</span></div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;<span class="comment"> * important global variable.  It is also set in (very few) other places,</span></div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;<span class="comment"> * but mainly just here.</span></div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00218"></a><span class="lineno"><a class="line" href="tw-setup_8c.html#ae29dd6eba29314361ef334f6bf028210">  218</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="tw-setup_8c.html#ae29dd6eba29314361ef334f6bf028210">tw_define_lps</a>(<a class="code" href="ross_8h.html#a911515dff2fb79886a16ed44df5f9d20">tw_lpid</a> nlp, <span class="keywordtype">size_t</span> msg_sz) {</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>  i;</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    <a class="code" href="ross-extern_8h.html#ab8bd876929690758e922961bcc16cd64">g_tw_nlp</a> = nlp;</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;    <a class="code" href="ross-extern_8h.html#a9d2ed177ca20252d6778f205eec20a83">g_tw_msg_sz</a> = msg_sz;</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;    <a class="code" href="tw-setup_8c.html#abeb5dbef977462c62de62c5ad5ff6dc2">early_sanity_check</a>();</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;<span class="comment">     * Construct the KP array.</span></div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    <span class="keywordflow">if</span>( <a class="code" href="ross-extern_8h.html#a4a237c68db5a0325e986d3710088d427">g_tw_nkp</a> == 1 &amp;&amp; <a class="code" href="ross-extern_8h.html#ae22db4d4e754eff64535402f5fa60a5f">g_tw_synchronization_protocol</a> != <a class="code" href="ross-types_8h.html#abea764c61c75c56008ccf665a71246fdacc902805d3a33320ec8f60c2add387ba">OPTIMISTIC_DEBUG</a> ) { <span class="comment">// if it is the default, then check with the overide param</span></div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;        <a class="code" href="ross-extern_8h.html#a4a237c68db5a0325e986d3710088d427">g_tw_nkp</a> = <a class="code" href="tw-setup_8c.html#ad7c514cd29ed14a2698dc3f1c3a0203b">nkp_per_pe</a>;</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;    }</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;    <span class="comment">// else assume the application overloaded and has BRAINS to set its own g_tw_nkp</span></div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;    <a class="code" href="ross-extern_8h.html#a64132b3acc0476622c31d7dc1676d227">g_tw_kp</a> = (<a class="code" href="structtw__kp.html">tw_kp</a> **) <a class="code" href="ross-extern_8h.html#a445b1ed30cd2e8ef1f837e782a339a70">tw_calloc</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;KPs&quot;</span>, <span class="keyword">sizeof</span>(*<a class="code" href="ross-extern_8h.html#a64132b3acc0476622c31d7dc1676d227">g_tw_kp</a>), <a class="code" href="ross-extern_8h.html#a4a237c68db5a0325e986d3710088d427">g_tw_nkp</a>);</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    <a class="code" href="st-instrumentation_8h.html#acc40ff4e443edf9cfd1a2a1f5539a41d">st_buffer_allocate</a>();</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    <span class="comment">//if (g_tw_mapping == CUSTOM) // analysis LPs currently only supported for custom mapping</span></div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;        <a class="code" href="specialized-lps_8c.html#a5d9446447f438f438da8795d29bdeee0">specialized_lp_setup</a>(); <span class="comment">// for ROSS analysis LPs, important for setting g_st_analysis_nlp</span></div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;<span class="comment">     * Construct the LP array.</span></div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    <a class="code" href="ross-extern_8h.html#a43d0a4ccc4cb71f94675a4b64a7c60c0">g_tw_lp</a> = (<a class="code" href="structtw__lp.html">tw_lp</a> **) <a class="code" href="ross-extern_8h.html#a445b1ed30cd2e8ef1f837e782a339a70">tw_calloc</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;LPs&quot;</span>, <span class="keyword">sizeof</span>(*<a class="code" href="ross-extern_8h.html#a43d0a4ccc4cb71f94675a4b64a7c60c0">g_tw_lp</a>), <a class="code" href="ross-extern_8h.html#ab8bd876929690758e922961bcc16cd64">g_tw_nlp</a> + <a class="code" href="specialized-lps_8c.html#abaecb255233b735460c8b9836547041e">g_st_analysis_nlp</a>);</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;    <span class="keywordflow">switch</span>(<a class="code" href="ross-extern_8h.html#aaa99d77ef4fabc6101a812df84e52be1">g_tw_mapping</a>) {</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="ross-types_8h.html#aaff8ab0fbfb817463eb76a185abc50cbadc101ebf31c49c2d4b80b7c6f59f22cb">LINEAR</a>:</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;            <a class="code" href="tw-setup_8c.html#aec955754eb6d560d7bc1454aeaaa516f">map_linear</a>();</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="ross-types_8h.html#aaff8ab0fbfb817463eb76a185abc50cba9e805af736d9be20caf33f5ec0dc1d47">ROUND_ROBIN</a>:</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;            <a class="code" href="tw-setup_8c.html#ab70815e9b532e3d9a85c0a3366477def">map_round_robin</a>();</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="ross-types_8h.html#aaff8ab0fbfb817463eb76a185abc50cba945d6010d321d9fe75cbba7b6f37f3b5">CUSTOM</a>:</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;            <span class="keywordflow">if</span>( <a class="code" href="ross-extern_8h.html#a820169aae973ab223b08721ab0c87982">g_tw_custom_initial_mapping</a> ) {</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;                <a class="code" href="ross-extern_8h.html#a820169aae973ab223b08721ab0c87982">g_tw_custom_initial_mapping</a>();</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;                <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;CUSTOM mapping flag set but not custom mapping function! \n&quot;</span>);</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;            }</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;        <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;            <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;Bad value for g_tw_mapping %d \n&quot;</span>, <a class="code" href="ross-extern_8h.html#aaa99d77ef4fabc6101a812df84e52be1">g_tw_mapping</a>);</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;    }</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;    <span class="comment">//if (g_tw_mapping == CUSTOM)</span></div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;        <a class="code" href="specialized-lps_8c.html#aa3965326e96c2b9e5aba87f35ed2a896">specialized_lp_init_mapping</a>();</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;    <span class="comment">// init LP RNG stream(s)</span></div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;    <span class="keywordflow">for</span>(i = 0; i &lt; <a class="code" href="ross-extern_8h.html#ab8bd876929690758e922961bcc16cd64">g_tw_nlp</a> + <a class="code" href="specialized-lps_8c.html#abaecb255233b735460c8b9836547041e">g_st_analysis_nlp</a>; i++) {</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;        <span class="keywordflow">if</span>(<a class="code" href="ross-extern_8h.html#a9fccda7e36235fc0c8a49af29f470270">g_tw_rng_default</a> == 1) {</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;            <a class="code" href="rand-clcg4_8c.html#a96c2fb54945c414a31ce0512c39622b0">tw_rand_init_streams</a>(<a class="code" href="ross-extern_8h.html#a43d0a4ccc4cb71f94675a4b64a7c60c0">g_tw_lp</a>[i], <a class="code" href="ross-extern_8h.html#a99999f4e30648f5007c61723c95a2d0e">g_tw_nRNG_per_lp</a>);</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;        }</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;    }</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;}</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;</div>
<div class="line"><a name="l00279"></a><span class="lineno"><a class="line" href="tw-setup_8c.html#a84acee4f148fbd5a3ec9735cb877c12d">  279</a></span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="tw-setup_8c.html#a84acee4f148fbd5a3ec9735cb877c12d">late_sanity_check</a>(<span class="keywordtype">void</span>) {</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;    <a class="code" href="ross-types_8h.html#a1c8bf5a99e9de5022cdaa304f3979e57">tw_kpid</a>  i;</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;    <a class="code" href="structtw__lptype.html">tw_lptype</a> null_type;</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;    <a class="code" href="structtw__kp.html">tw_kp</a> *kp;</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;    memset(&amp;null_type, 0, <span class="keyword">sizeof</span>(null_type));</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;    <span class="comment">/* KPs must be mapped . */</span></div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;    <span class="comment">// should we worry if model doesn&#39;t use all defined KPs?  probably not.</span></div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="ross-extern_8h.html#a4a237c68db5a0325e986d3710088d427">g_tw_nkp</a>; i++) {</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;        kp = <a class="code" href="ross-kernel-inline_8h.html#a4066dfaca8faa4af256a377d85cea32f">tw_getkp</a>(i);</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;        <span class="keywordflow">if</span>( kp == NULL ) {</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;            <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;Local KP %u is NULL \n&quot;</span>, i);</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;        }</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;        <span class="keywordflow">if</span> (kp-&gt;<a class="code" href="structtw__kp.html#a9e8fe6319cfd909db8f50e29ce43b1fc">pe</a> == NULL) {</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;            <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;Local KP %u has no PE assigned.&quot;</span>, i);</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;        }</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;    }</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;    <span class="comment">/* LPs KP and PE must agree. */</span></div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="ross-extern_8h.html#ab8bd876929690758e922961bcc16cd64">g_tw_nlp</a> + <a class="code" href="specialized-lps_8c.html#abaecb255233b735460c8b9836547041e">g_st_analysis_nlp</a>; i++) {</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;        <a class="code" href="structtw__lp.html">tw_lp</a> *lp = <a class="code" href="ross-extern_8h.html#a43d0a4ccc4cb71f94675a4b64a7c60c0">g_tw_lp</a>[i];</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;        <span class="keywordflow">if</span> (!lp || !lp-&gt;<a class="code" href="structtw__lp.html#a9fd32632e5c45a00faf16a6fd0814640">pe</a>) {</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;            <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;LP %u has no PE assigned.&quot;</span>, i);</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;        }</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;        <span class="keywordflow">if</span> (!lp-&gt;<a class="code" href="structtw__lp.html#a8028662b2668953fa9f49f2df7d00850">kp</a>) {</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;            <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;LP not mapped to a KP!&quot;</span>);</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;        }</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;        <span class="keywordflow">if</span> (lp-&gt;<a class="code" href="structtw__lp.html#a9fd32632e5c45a00faf16a6fd0814640">pe</a> != lp-&gt;<a class="code" href="structtw__lp.html#a8028662b2668953fa9f49f2df7d00850">kp</a>-&gt;<a class="code" href="structtw__kp.html#a9e8fe6319cfd909db8f50e29ce43b1fc">pe</a>) {</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;            <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;LP %u has mismatched KP and PE.&quot;</span>, lp-&gt;<a class="code" href="structtw__lp.html#a66d6671f56c8ba0ebcb1fb89354e51b4">id</a>);</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;        }</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;        <span class="keywordflow">if</span> (!memcmp(lp-&gt;<a class="code" href="structtw__lp.html#a205f09ff294b6bb1f61eab7b099ebea2">type</a>, &amp;null_type, <span class="keyword">sizeof</span>(null_type))) {</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;            <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;LP %u has no type.&quot;</span>, lp-&gt;<a class="code" href="structtw__lp.html#a66d6671f56c8ba0ebcb1fb89354e51b4">id</a>);</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;        }</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;    }</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;}</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;<span class="preprocessor">#ifdef USE_BGPM</span></div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;<span class="preprocessor"></span><span class="keywordtype">unsigned</span> cacheList[] = {</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;    PEVT_L2_HITS,</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;    PEVT_L2_MISSES,</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;    PEVT_L2_FETCH_LINE,</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;    PEVT_L2_STORE_LINE,</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;};</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;<span class="keywordtype">unsigned</span> instList[] = {</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;    PEVT_LSU_COMMIT_CACHEABLE_LDS,</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;    PEVT_L1P_BAS_MISS,</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;    PEVT_INST_XU_ALL,</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;    PEVT_INST_QFPU_ALL,</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;    PEVT_INST_QFPU_FPGRP1,</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;    PEVT_INST_ALL,</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;};</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00339"></a><span class="lineno"><a class="line" href="tw-setup_8c.html#a6dbc4bba03285bb1b8a8a5464f0375ea">  339</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="tw-setup_8c.html#a6dbc4bba03285bb1b8a8a5464f0375ea">tw_run</a>(<span class="keywordtype">void</span>) {</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;    <a class="code" href="structtw__pe.html">tw_pe</a> *me;</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;    <a class="code" href="tw-setup_8c.html#a84acee4f148fbd5a3ec9735cb877c12d">late_sanity_check</a>();</div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;    me = <a class="code" href="tw-setup_8c.html#a33b10808894f8c4d429e391810d96e08">setup_pes</a>();</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;    <span class="comment">// init instrumentation</span></div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;    <a class="code" href="st-instrumentation_8c.html#a2141145e35484c4401c6786406afd224">st_inst_init</a>();</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;<span class="preprocessor">#ifdef USE_DAMARIS</span></div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;<span class="preprocessor"></span>    <span class="keywordflow">if</span> (g_st_damaris_enabled)</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;        st_damaris_inst_init();</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;<span class="preprocessor">#ifdef USE_BGPM</span></div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;<span class="preprocessor"></span>    Bgpm_Init(BGPM_MODE_SWDISTRIB);</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;    <span class="comment">// Create event set and add events needed to calculate CPI,</span></div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;    <span class="keywordtype">int</span> hEvtSet = Bgpm_CreateEventSet();</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;    <span class="comment">// Change the type here to get the other performance monitor sets -- defaults to instList set</span></div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;    <span class="comment">// Sets need to be different because there are conflicts when mixing certain events.</span></div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;    Bgpm_AddEventList(hEvtSet, instList, <span class="keyword">sizeof</span>(instList)/<span class="keyword">sizeof</span>(<span class="keywordtype">unsigned</span>) );</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;    <span class="keywordflow">if</span>( me-&gt;<a class="code" href="structtw__pe.html#a8a57f2123eddf6a195d82ecc781093e6">id</a> == 0) {</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;        printf(<span class="stringliteral">&quot;***************************************************************************************** \n&quot;</span>);</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;        printf(<span class="stringliteral">&quot;* NOTICE: Build configured with Blue Gene/Q specific, BGPM performance monitoring code!!* \n&quot;</span>);</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;        printf(<span class="stringliteral">&quot;***************************************************************************************** \n&quot;</span>);</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;    }</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;    Bgpm_Apply(hEvtSet);</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;    Bgpm_Start(hEvtSet);</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;    <a class="code" href="ross-extern_8h.html#ae7357a99fcf58867f153cb7ab920b400">tw_sched_init</a>(me);</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;    me-&gt;<a class="code" href="structtw__pe.html#ac1d26b7bfd058cc55cbf5ee201edb83c">stats</a>.<a class="code" href="structtw__statistics.html#ae069d860a0a90e7d8280c8ec74cb9432">s_init</a> = <a class="code" href="aarch64_8h.html#a450cf25fa5291629087ca4198de55757">tw_clock_read</a>() - <a class="code" href="tw-setup_8c.html#a67a33e9fdd9f680a1790fece8b07699a">init_start</a>;</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;    <span class="keywordflow">switch</span>(<a class="code" href="ross-extern_8h.html#ae22db4d4e754eff64535402f5fa60a5f">g_tw_synchronization_protocol</a>) {</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="ross-types_8h.html#abea764c61c75c56008ccf665a71246fda6b834d43476553e583e0fde6578c82f0">SEQUENTIAL</a>:            <span class="comment">// case 1</span></div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;            <a class="code" href="ross-extern_8h.html#ae19668282cb4aab245e2382eea8f1967">tw_scheduler_sequential</a>(me);</div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;</div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="ross-types_8h.html#abea764c61c75c56008ccf665a71246fda70cd78c3dbc0801ed52437fa82a6e8ef">CONSERVATIVE</a>:         <span class="comment">// case 2</span></div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;            <a class="code" href="ross-extern_8h.html#ab3e02a0e976921bd18a11b8b6a00c110">tw_scheduler_conservative</a>(me);</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;</div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="ross-types_8h.html#abea764c61c75c56008ccf665a71246fda7ff3894aed4e1746b6fb19f9472678c8">OPTIMISTIC</a>:          <span class="comment">// case 3</span></div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;            <a class="code" href="ross-extern_8h.html#a1ebf9585a3de4d61c5fc050c7600fcd8">tw_scheduler_optimistic</a>(me);</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="ross-types_8h.html#abea764c61c75c56008ccf665a71246fdacc902805d3a33320ec8f60c2add387ba">OPTIMISTIC_DEBUG</a>:    <span class="comment">// case 4</span></div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;            <a class="code" href="ross-extern_8h.html#ad49988d8dcde406fac7f4a2e11eac17f">tw_scheduler_optimistic_debug</a>(me);</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="ross-types_8h.html#abea764c61c75c56008ccf665a71246fda65a00e65f23b13a6f19ea3e16f9b9e05">OPTIMISTIC_REALTIME</a>: <span class="comment">// case 5</span></div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;            <a class="code" href="ross-extern_8h.html#accfa49d85bd68f2c53d4a08cf64ace88">tw_scheduler_optimistic_realtime</a>(me);</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;        <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;            <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;No Synchronization Protocol Specified! \n&quot;</span>);</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;    }</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;<span class="preprocessor">#ifdef USE_BGPM</span></div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;<span class="preprocessor"></span>    Bgpm_Stop(hEvtSet);</div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;</div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;    <span class="keywordflow">if</span>( me-&gt;<a class="code" href="structtw__pe.html#a8a57f2123eddf6a195d82ecc781093e6">id</a> == 0 ) { <span class="comment">// Have only RANK 0 output stats</span></div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;        <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;        uint64_t cnt;</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;        <span class="keywordtype">int</span> numEvts = Bgpm_NumEvents(hEvtSet);</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;        printf(<span class="stringliteral">&quot;\n \n ================================= \n&quot;</span>);</div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;        printf( <span class="stringliteral">&quot;Performance Counter Results:\n&quot;</span>);</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;        printf(<span class="stringliteral">&quot;--------------------------------- \n&quot;</span>);</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;        <span class="keywordflow">for</span> (i=0; i&lt;numEvts; i++) {</div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;            Bgpm_ReadEvent(hEvtSet, i, &amp;cnt);</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;            printf(<span class="stringliteral">&quot;   %40s = %20llu\n&quot;</span>, Bgpm_GetEventLabel(hEvtSet, i), cnt);</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;        }</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;        printf(<span class="stringliteral">&quot;================================= \n&quot;</span>);</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;    }</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;<span class="preprocessor"></span>}</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;</div>
<div class="line"><a name="l00420"></a><span class="lineno"><a class="line" href="tw-setup_8c.html#acd06dc2372c54c089852984132991b4e">  420</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="tw-setup_8c.html#acd06dc2372c54c089852984132991b4e">tw_end</a>(<span class="keywordtype">void</span>) {</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;<span class="preprocessor">#ifdef USE_DAMARIS</span></div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;<span class="preprocessor"></span>    <span class="keywordflow">if</span>(g_st_ross_rank)</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;    {</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;<span class="preprocessor"></span>    <span class="keywordflow">if</span>(<a class="code" href="ross-kernel-inline_8h.html#a0e8a2538926cdb59af049a899566de6c">tw_ismaster</a>()) {</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;        fprintf(<a class="code" href="ross-extern_8h.html#a8747c3bfc331d131dd546883b336feef">g_tw_csv</a>, <span class="stringliteral">&quot;\n&quot;</span>);</div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;        fclose(<a class="code" href="ross-extern_8h.html#a8747c3bfc331d131dd546883b336feef">g_tw_csv</a>);</div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;    }</div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;<span class="preprocessor">#ifdef USE_DAMARIS</span></div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;<span class="preprocessor"></span>    } <span class="comment">// end if(g_st_ross_rank)</span></div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;    <a class="code" href="network-mpi_8c.html#a753856a718a9881f642523034260d3f9">tw_net_stop</a>();</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;}</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;<span class="comment"> * By the time this function gets called, g_tw_delta_sz should be as large</span></div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;<span class="comment"> * as it will ever get.</span></div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00440"></a><span class="lineno"><a class="line" href="tw-setup_8c.html#a83b28224a6806fcc16545a6aa8ea6ad3">  440</a></span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="tw-setup_8c.html#a83b28224a6806fcc16545a6aa8ea6ad3">tw_delta_alloc</a>(<a class="code" href="structtw__pe.html">tw_pe</a> *<a class="code" href="avl__tree_8c.html#ac4c639748d4d5a271d6c54a18f614605">pe</a>) {</div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;    <a class="code" href="ross-extern_8h.html#acf6004787509f060f92d0edf8c2a4467">g_tw_delta_sz</a> = <a class="code" href="lz4_8c.html#a2b09f5ca41ce609bb136d3637beffe04">LZ4_compressBound</a>(<a class="code" href="ross-extern_8h.html#acf6004787509f060f92d0edf8c2a4467">g_tw_delta_sz</a>);</div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;    pe-&gt;<a class="code" href="structtw__pe.html#ad238a4127fa0eaee43605bcbc47bd73a">delta_buffer</a>[0] = (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *)<a class="code" href="ross-extern_8h.html#a445b1ed30cd2e8ef1f837e782a339a70">tw_calloc</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;Delta buffers&quot;</span>, <a class="code" href="ross-extern_8h.html#acf6004787509f060f92d0edf8c2a4467">g_tw_delta_sz</a>, 1);</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;    pe-&gt;<a class="code" href="structtw__pe.html#ad238a4127fa0eaee43605bcbc47bd73a">delta_buffer</a>[1] = (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *)<a class="code" href="ross-extern_8h.html#a445b1ed30cd2e8ef1f837e782a339a70">tw_calloc</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;Delta buffers&quot;</span>, <a class="code" href="ross-extern_8h.html#acf6004787509f060f92d0edf8c2a4467">g_tw_delta_sz</a>, 1);</div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;    pe-&gt;<a class="code" href="structtw__pe.html#ad238a4127fa0eaee43605bcbc47bd73a">delta_buffer</a>[2] = (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *)<a class="code" href="ross-extern_8h.html#a445b1ed30cd2e8ef1f837e782a339a70">tw_calloc</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;Delta buffers&quot;</span>, <a class="code" href="ross-extern_8h.html#acf6004787509f060f92d0edf8c2a4467">g_tw_delta_sz</a>, 1);</div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;}</div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;</div>
<div class="line"><a name="l00448"></a><span class="lineno"><a class="line" href="tw-setup_8c.html#a33b10808894f8c4d429e391810d96e08">  448</a></span>&#160;<span class="keyword">static</span> <a class="code" href="structtw__pe.html">tw_pe</a> * <a class="code" href="tw-setup_8c.html#a33b10808894f8c4d429e391810d96e08">setup_pes</a>(<span class="keywordtype">void</span>) {</div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;    <a class="code" href="structtw__pe.html">tw_pe</a>   *<a class="code" href="avl__tree_8c.html#ac4c639748d4d5a271d6c54a18f614605">pe</a> = <a class="code" href="ross-extern_8h.html#a2f67789cc425e7d839fa4b983f5b8505">g_tw_pe</a>;</div>
<div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;</div>
<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> num_events_per_pe;</div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;</div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;    num_events_per_pe = 1 + <a class="code" href="ross-extern_8h.html#a57043bf25127f521210bbf779e283e13">g_tw_events_per_pe</a> + <a class="code" href="ross-extern_8h.html#a17c791c2b25a6f00f8244f7f1244b9ca">g_tw_events_per_pe_extra</a>;</div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;</div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;    <span class="keywordflow">if</span> (!pe) {</div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;        <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;No PE configured on this node.&quot;</span>);</div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;    }</div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;</div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;    <span class="comment">// TODO need to make sure we don&#39;t break this stuff</span></div>
<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="ross-extern_8h.html#a86d0fe2c4d7b1be618d6cce801f085ee">g_tw_buddy_alloc</a>) {</div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;        <a class="code" href="ross-extern_8h.html#a0cf427702daec5609d393c928ba6597d">g_tw_buddy_master</a> = <a class="code" href="buddy_8c.html#ac7158d51ffbe54dd3e04d6568f90c42c">create_buddy_table</a>(<a class="code" href="ross-extern_8h.html#a86d0fe2c4d7b1be618d6cce801f085ee">g_tw_buddy_alloc</a>);</div>
<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="ross-extern_8h.html#a0cf427702daec5609d393c928ba6597d">g_tw_buddy_master</a> == NULL) {</div>
<div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;            <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;create_buddy_table() failed.&quot;</span>);</div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;        }</div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;        <a class="code" href="tw-setup_8c.html#a83b28224a6806fcc16545a6aa8ea6ad3">tw_delta_alloc</a>(pe);</div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;    }</div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;    pe-&gt;<a class="code" href="structtw__pe.html#a90e1dbe51a084d6e02580667159e13ff">pq</a> = <a class="code" href="splay_8c.html#a3e01ce907630af7763047e4d9ba14693">tw_pq_create</a>();</div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;</div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;    <a class="code" href="tw-eventq_8h.html#ac91b37eb84633064fe5d29534631618b">tw_eventq_alloc</a>(&amp;pe-&gt;<a class="code" href="structtw__pe.html#a0c3cba781d3d3836d9ebdd93d5be8be5">free_q</a>, num_events_per_pe);</div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;    pe-&gt;<a class="code" href="structtw__pe.html#a76e88f72d90635b512db0ba17d570e2f">abort_event</a> = <a class="code" href="tw-eventq_8h.html#aecf7d4bfd567e6356033b8379f5ec3bd">tw_eventq_shift</a>(&amp;pe-&gt;<a class="code" href="structtw__pe.html#a0c3cba781d3d3836d9ebdd93d5be8be5">free_q</a>);</div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;<span class="preprocessor">#ifdef USE_RIO</span></div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;<span class="preprocessor"></span>    <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;    <a class="code" href="aarch64_8h.html#abcd6b97b84bebf1f961f85cd24b56c60">tw_clock</a> start = <a class="code" href="aarch64_8h.html#a450cf25fa5291629087ca4198de55757">tw_clock_read</a>();</div>
<div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="io-mpi_8c.html#a643d9badf8f7f8eac1e3af3ce13be9c7">g_io_events_buffered_per_rank</a>; i++) {</div>
<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;        <a class="code" href="tw-eventq_8h.html#a5c324b9c5a53c17e78709fa7eaaa7a1f">tw_eventq_push</a>(&amp;<a class="code" href="io-mpi_8c.html#a8a569f8a2d9e4125877642e49ce9d58c">g_io_free_events</a>, <a class="code" href="tw-eventq_8h.html#aa40bc1edebb9f58d87092388cf8dc0df">tw_eventq_pop</a>(&amp;<a class="code" href="ross-extern_8h.html#a2f67789cc425e7d839fa4b983f5b8505">g_tw_pe</a>-&gt;<a class="code" href="structtw__pe.html#a0c3cba781d3d3836d9ebdd93d5be8be5">free_q</a>));</div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;    }</div>
<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;    pe-&gt;<a class="code" href="structtw__pe.html#ac1d26b7bfd058cc55cbf5ee201edb83c">stats</a>.s_rio_load = (<a class="code" href="aarch64_8h.html#a450cf25fa5291629087ca4198de55757">tw_clock_read</a>() - start);</div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="ross-extern_8h.html#a83ae3f8b8b94935a1dbdfa2d2552f508">g_tw_mynode</a> == <a class="code" href="ross-extern_8h.html#abb6067d27f1c3e888c1d276490f28088">g_tw_masternode</a>) {</div>
<div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;        printf(<span class="stringliteral">&quot;\nROSS Core Configuration: \n&quot;</span>);</div>
<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;        printf(<span class="stringliteral">&quot;\t%-50s %11u\n&quot;</span>, <span class="stringliteral">&quot;Total PEs&quot;</span>, <a class="code" href="network-mpi_8c.html#a2818efb70df48e5e29d3dacb3e2de009">tw_nnodes</a>());</div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;        fprintf(<a class="code" href="ross-extern_8h.html#a8747c3bfc331d131dd546883b336feef">g_tw_csv</a>, <span class="stringliteral">&quot;%u,&quot;</span>, <a class="code" href="network-mpi_8c.html#a2818efb70df48e5e29d3dacb3e2de009">tw_nnodes</a>());</div>
<div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;</div>
<div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;        printf(<span class="stringliteral">&quot;\t%-50s [Nodes (%u) x KPs (%lu)] %lu\n&quot;</span>, <span class="stringliteral">&quot;Total KPs&quot;</span>, <a class="code" href="network-mpi_8c.html#a2818efb70df48e5e29d3dacb3e2de009">tw_nnodes</a>(), <a class="code" href="ross-extern_8h.html#a4a237c68db5a0325e986d3710088d427">g_tw_nkp</a>, (<a class="code" href="network-mpi_8c.html#a2818efb70df48e5e29d3dacb3e2de009">tw_nnodes</a>() * <a class="code" href="ross-extern_8h.html#a4a237c68db5a0325e986d3710088d427">g_tw_nkp</a>));</div>
<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;        fprintf(<a class="code" href="ross-extern_8h.html#a8747c3bfc331d131dd546883b336feef">g_tw_csv</a>, <span class="stringliteral">&quot;%lu,&quot;</span>, (<a class="code" href="network-mpi_8c.html#a2818efb70df48e5e29d3dacb3e2de009">tw_nnodes</a>() * <a class="code" href="ross-extern_8h.html#a4a237c68db5a0325e986d3710088d427">g_tw_nkp</a>));</div>
<div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;</div>
<div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;        <span class="comment">// TODO need to do an allreduce call to get actual total number of LPs (e.g., for CODES)</span></div>
<div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;        printf(<span class="stringliteral">&quot;\t%-50s %11llu\n&quot;</span>, <span class="stringliteral">&quot;Total LPs&quot;</span>,</div>
<div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;               ((<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span>)<a class="code" href="network-mpi_8c.html#a2818efb70df48e5e29d3dacb3e2de009">tw_nnodes</a>() * <a class="code" href="ross-extern_8h.html#ab8bd876929690758e922961bcc16cd64">g_tw_nlp</a>));</div>
<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;        fprintf(<a class="code" href="ross-extern_8h.html#a8747c3bfc331d131dd546883b336feef">g_tw_csv</a>, <span class="stringliteral">&quot;%llu,&quot;</span>, ((<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span>)<a class="code" href="network-mpi_8c.html#a2818efb70df48e5e29d3dacb3e2de009">tw_nnodes</a>() * <a class="code" href="ross-extern_8h.html#ab8bd876929690758e922961bcc16cd64">g_tw_nlp</a>));</div>
<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;</div>
<div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;        printf(<span class="stringliteral">&quot;\t%-50s %11.2lf\n&quot;</span>, <span class="stringliteral">&quot;Simulation End Time&quot;</span>, <a class="code" href="ross-extern_8h.html#aedd6d883bb5b01f0d5c1121f48b0477e">g_tw_ts_end</a>);</div>
<div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;        fprintf(<a class="code" href="ross-extern_8h.html#a8747c3bfc331d131dd546883b336feef">g_tw_csv</a>, <span class="stringliteral">&quot;%.2lf,&quot;</span>, <a class="code" href="ross-extern_8h.html#aedd6d883bb5b01f0d5c1121f48b0477e">g_tw_ts_end</a>);</div>
<div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;</div>
<div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;</div>
<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;        <span class="keywordflow">switch</span>(<a class="code" href="ross-extern_8h.html#aaa99d77ef4fabc6101a812df84e52be1">g_tw_mapping</a>) {</div>
<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;            <span class="keywordflow">case</span> <a class="code" href="ross-types_8h.html#aaff8ab0fbfb817463eb76a185abc50cbadc101ebf31c49c2d4b80b7c6f59f22cb">LINEAR</a>:</div>
<div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;                printf(<span class="stringliteral">&quot;\t%-50s %11s\n&quot;</span>, <span class="stringliteral">&quot;LP-to-PE Mapping&quot;</span>, <span class="stringliteral">&quot;linear&quot;</span>);</div>
<div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;                fprintf(<a class="code" href="ross-extern_8h.html#a8747c3bfc331d131dd546883b336feef">g_tw_csv</a>, <span class="stringliteral">&quot;%s,&quot;</span>, <span class="stringliteral">&quot;linear&quot;</span>);</div>
<div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;</div>
<div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;            <span class="keywordflow">case</span> <a class="code" href="ross-types_8h.html#aaff8ab0fbfb817463eb76a185abc50cba9e805af736d9be20caf33f5ec0dc1d47">ROUND_ROBIN</a>:</div>
<div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;                printf(<span class="stringliteral">&quot;\t%-50s %11s\n&quot;</span>, <span class="stringliteral">&quot;LP-to-PE Mapping&quot;</span>, <span class="stringliteral">&quot;round robin&quot;</span>);</div>
<div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;                fprintf(<a class="code" href="ross-extern_8h.html#a8747c3bfc331d131dd546883b336feef">g_tw_csv</a>, <span class="stringliteral">&quot;%s,&quot;</span>, <span class="stringliteral">&quot;round robin&quot;</span>);</div>
<div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;</div>
<div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;            <span class="keywordflow">case</span> <a class="code" href="ross-types_8h.html#aaff8ab0fbfb817463eb76a185abc50cba945d6010d321d9fe75cbba7b6f37f3b5">CUSTOM</a>:</div>
<div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;                printf(<span class="stringliteral">&quot;\t%-50s %11s\n&quot;</span>, <span class="stringliteral">&quot;LP-to-PE Mapping&quot;</span>, <span class="stringliteral">&quot;model defined&quot;</span>);</div>
<div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;                fprintf(<a class="code" href="ross-extern_8h.html#a8747c3bfc331d131dd546883b336feef">g_tw_csv</a>, <span class="stringliteral">&quot;%s,&quot;</span>, <span class="stringliteral">&quot;model defined&quot;</span>);</div>
<div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;        }</div>
<div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;        printf(<span class="stringliteral">&quot;\n&quot;</span>);</div>
<div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;</div>
<div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;<span class="preprocessor">#ifdef USE_DAMARIS</span></div>
<div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;<span class="preprocessor"></span>    st_damaris_init_print();</div>
<div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;        <span class="comment">// moved these so ross.csv stays consistent</span></div>
<div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;        fprintf(<a class="code" href="ross-extern_8h.html#a8747c3bfc331d131dd546883b336feef">g_tw_csv</a>, <span class="stringliteral">&quot;%d,&quot;</span>, num_events_per_pe);</div>
<div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;        fprintf(<a class="code" href="ross-extern_8h.html#a8747c3bfc331d131dd546883b336feef">g_tw_csv</a>, <span class="stringliteral">&quot;%d,&quot;</span>, <a class="code" href="ross-extern_8h.html#a0971b76f9dc9a9097c4999d4121c2518">g_tw_gvt_threshold</a>);</div>
<div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;        fprintf(<a class="code" href="ross-extern_8h.html#a8747c3bfc331d131dd546883b336feef">g_tw_csv</a>, <span class="stringliteral">&quot;%d,&quot;</span>, <a class="code" href="ross-extern_8h.html#a57043bf25127f521210bbf779e283e13">g_tw_events_per_pe</a>);</div>
<div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;<span class="preprocessor">#ifndef ROSS_DO_NOT_PRINT</span></div>
<div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;<span class="preprocessor"></span>        printf(<span class="stringliteral">&quot;\nROSS Event Memory Allocation:\n&quot;</span>);</div>
<div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;        printf(<span class="stringliteral">&quot;\t%-50s %11d\n&quot;</span>, <span class="stringliteral">&quot;Model events&quot;</span>, num_events_per_pe);</div>
<div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;</div>
<div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;        printf(<span class="stringliteral">&quot;\t%-50s %11d\n&quot;</span>, <span class="stringliteral">&quot;Network events&quot;</span>, <a class="code" href="ross-extern_8h.html#a0971b76f9dc9a9097c4999d4121c2518">g_tw_gvt_threshold</a>);</div>
<div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;</div>
<div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;        printf(<span class="stringliteral">&quot;\t%-50s %11d\n&quot;</span>, <span class="stringliteral">&quot;Total events&quot;</span>, <a class="code" href="ross-extern_8h.html#a57043bf25127f521210bbf779e283e13">g_tw_events_per_pe</a>);</div>
<div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;        printf(<span class="stringliteral">&quot;\n&quot;</span>);</div>
<div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;<span class="preprocessor"></span>    }</div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="avl__tree_8c.html#ac4c639748d4d5a271d6c54a18f614605">pe</a>;</div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;}</div>
<div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;</div>
<div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;<span class="comment">// This is the default lp type mapping function</span></div>
<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;<span class="comment">// valid ONLY if there is one lp type</span></div>
<div class="line"><a name="l00538"></a><span class="lineno"><a class="line" href="tw-setup_8c.html#a2dda8286172a4137c4c26649859aa61c">  538</a></span>&#160;<a class="code" href="ross_8h.html#a911515dff2fb79886a16ed44df5f9d20">tw_lpid</a> <a class="code" href="tw-setup_8c.html#a2dda8286172a4137c4c26649859aa61c">map_onetype</a> (<a class="code" href="ross_8h.html#a911515dff2fb79886a16ed44df5f9d20">tw_lpid</a> gid) {</div>
<div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;    (void) gid;</div>
<div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160;}</div>
<div class="ttc" id="config_8h_html_a944f247b3ff235fb69be8ddd70c326e0"><div class="ttname"><a href="config_8h.html#a944f247b3ff235fb69be8ddd70c326e0">ROSS_VERSION</a></div><div class="ttdeci">#define ROSS_VERSION</div><div class="ttdef"><b>Definition:</b> <a href="config_8h_source.html#l00011">config.h:11</a></div></div>
<div class="ttc" id="ross-extern_8h_html_ae22db4d4e754eff64535402f5fa60a5f"><div class="ttname"><a href="ross-extern_8h.html#ae22db4d4e754eff64535402f5fa60a5f">g_tw_synchronization_protocol</a></div><div class="ttdeci">tw_synch g_tw_synchronization_protocol</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00018">ross-global.c:18</a></div></div>
<div class="ttc" id="ross-extern_8h_html_afffdf140f2c492f61546ad783833f127"><div class="ttname"><a href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a></div><div class="ttdeci">#define TW_LOC</div><div class="ttdef"><b>Definition:</b> <a href="ross-extern_8h_source.html#l00164">ross-extern.h:164</a></div></div>
<div class="ttc" id="ross-extern_8h_html_aafb58a114f017b8491090ea372312684"><div class="ttname"><a href="ross-extern_8h.html#aafb58a114f017b8491090ea372312684">tw_kp_onpe</a></div><div class="ttdeci">void tw_kp_onpe(tw_kpid id, tw_pe *pe)</div><div class="ttdef"><b>Definition:</b> <a href="tw-kp_8c_source.html#l00004">tw-kp.c:4</a></div></div>
<div class="ttc" id="st-instrumentation_8c_html_ab95b216a927e7de0666b153bd4b113ea"><div class="ttname"><a href="st-instrumentation_8c.html#ab95b216a927e7de0666b153bd4b113ea">st_inst_opts</a></div><div class="ttdeci">const tw_optdef * st_inst_opts(void)</div><div class="ttdef"><b>Definition:</b> <a href="st-instrumentation_8c_source.html#l00046">st-instrumentation.c:46</a></div></div>
<div class="ttc" id="tw-setup_8c_html_a475f025c5a2abfaf6e0963ce5360477c"><div class="ttname"><a href="tw-setup_8c.html#a475f025c5a2abfaf6e0963ce5360477c">kernel_options</a></div><div class="ttdeci">static const tw_optdef kernel_options[]</div><div class="ttdef"><b>Definition:</b> <a href="tw-setup_8c_source.html#l00016">tw-setup.c:16</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a43d0a4ccc4cb71f94675a4b64a7c60c0"><div class="ttname"><a href="ross-extern_8h.html#a43d0a4ccc4cb71f94675a4b64a7c60c0">g_tw_lp</a></div><div class="ttdeci">tw_lp ** g_tw_lp</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00026">ross-global.c:26</a></div></div>
<div class="ttc" id="network-mpi_8c_html_a753856a718a9881f642523034260d3f9"><div class="ttname"><a href="network-mpi_8c.html#a753856a718a9881f642523034260d3f9">tw_net_stop</a></div><div class="ttdeci">void tw_net_stop(void)</div><div class="ttdoc">Stops the network library after simulation end. </div><div class="ttdef"><b>Definition:</b> <a href="network-mpi_8c_source.html#l00154">network-mpi.c:154</a></div></div>
<div class="ttc" id="tw-setup_8c_html_abeb5dbef977462c62de62c5ad5ff6dc2"><div class="ttname"><a href="tw-setup_8c.html#abeb5dbef977462c62de62c5ad5ff6dc2">early_sanity_check</a></div><div class="ttdeci">static void early_sanity_check(void)</div><div class="ttdef"><b>Definition:</b> <a href="tw-setup_8c_source.html#l00122">tw-setup.c:122</a></div></div>
<div class="ttc" id="ross-extern_8h_html_aedd6d883bb5b01f0d5c1121f48b0477e"><div class="ttname"><a href="ross-extern_8h.html#aedd6d883bb5b01f0d5c1121f48b0477e">g_tw_ts_end</a></div><div class="ttdeci">double g_tw_ts_end</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00068">ross-global.c:68</a></div></div>
<div class="ttc" id="ross-types_8h_html_aaff8ab0fbfb817463eb76a185abc50cba9e805af736d9be20caf33f5ec0dc1d47"><div class="ttname"><a href="ross-types_8h.html#aaff8ab0fbfb817463eb76a185abc50cba9e805af736d9be20caf33f5ec0dc1d47">ROUND_ROBIN</a></div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00039">ross-types.h:39</a></div></div>
<div class="ttc" id="ross-types_8h_html_aaff8ab0fbfb817463eb76a185abc50cba945d6010d321d9fe75cbba7b6f37f3b5"><div class="ttname"><a href="ross-types_8h.html#aaff8ab0fbfb817463eb76a185abc50cba945d6010d321d9fe75cbba7b6f37f3b5">CUSTOM</a></div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00040">ross-types.h:40</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a49ed2388aaae26e43280b7909c834aaa"><div class="ttname"><a href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a></div><div class="ttdeci">void tw_error(const char *file, int line, const char *fmt,...) NORETURN</div><div class="ttdef"><b>Definition:</b> <a href="tw-util_8c_source.html#l00074">tw-util.c:74</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a9d2ed177ca20252d6778f205eec20a83"><div class="ttname"><a href="ross-extern_8h.html#a9d2ed177ca20252d6778f205eec20a83">g_tw_msg_sz</a></div><div class="ttdeci">size_t g_tw_msg_sz</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00033">ross-global.c:33</a></div></div>
<div class="ttc" id="structtw__lp_html_a205f09ff294b6bb1f61eab7b099ebea2"><div class="ttname"><a href="structtw__lp.html#a205f09ff294b6bb1f61eab7b099ebea2">tw_lp::type</a></div><div class="ttdeci">tw_lptype * type</div><div class="ttdoc">Type of this LP, including service callbacks. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00316">ross-types.h:316</a></div></div>
<div class="ttc" id="mpi__allreduce_8c_html_a5f11084158c441f3119d608cb25027de"><div class="ttname"><a href="mpi__allreduce_8c.html#a5f11084158c441f3119d608cb25027de">tw_gvt_setup</a></div><div class="ttdeci">const tw_optdef * tw_gvt_setup(void)</div><div class="ttdef"><b>Definition:</b> <a href="mpi__allreduce_8c_source.html#l00026">mpi_allreduce.c:26</a></div></div>
<div class="ttc" id="ross-extern_8h_html_ae8a20282effaa19f11bcaada18b5427d"><div class="ttname"><a href="ross-extern_8h.html#ae8a20282effaa19f11bcaada18b5427d">g_tw_lp_offset</a></div><div class="ttdeci">tw_lpid g_tw_lp_offset</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00024">ross-global.c:24</a></div></div>
<div class="ttc" id="structtw__pe_html_ac1d26b7bfd058cc55cbf5ee201edb83c"><div class="ttname"><a href="structtw__pe.html#ac1d26b7bfd058cc55cbf5ee201edb83c">tw_pe::stats</a></div><div class="ttdeci">tw_statistics stats</div><div class="ttdoc">per PE counters </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00415">ross-types.h:415</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a0971b76f9dc9a9097c4999d4121c2518"><div class="ttname"><a href="ross-extern_8h.html#a0971b76f9dc9a9097c4999d4121c2518">g_tw_gvt_threshold</a></div><div class="ttdeci">unsigned int g_tw_gvt_threshold</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00080">ross-global.c:80</a></div></div>
<div class="ttc" id="io-mpi_8c_html_a8a569f8a2d9e4125877642e49ce9d58c"><div class="ttname"><a href="io-mpi_8c.html#a8a569f8a2d9e4125877642e49ce9d58c">g_io_free_events</a></div><div class="ttdeci">tw_eventq g_io_free_events</div><div class="ttdef"><b>Definition:</b> <a href="io-mpi_8c_source.html#l00025">io-mpi.c:25</a></div></div>
<div class="ttc" id="ross-kernel-inline_8h_html_a0e8a2538926cdb59af049a899566de6c"><div class="ttname"><a href="ross-kernel-inline_8h.html#a0e8a2538926cdb59af049a899566de6c">tw_ismaster</a></div><div class="ttdeci">static int tw_ismaster(void)</div><div class="ttdef"><b>Definition:</b> <a href="ross-kernel-inline_8h_source.html#l00068">ross-kernel-inline.h:68</a></div></div>
<div class="ttc" id="tw-eventq_8h_html_ac91b37eb84633064fe5d29534631618b"><div class="ttname"><a href="tw-eventq_8h.html#ac91b37eb84633064fe5d29534631618b">tw_eventq_alloc</a></div><div class="ttdeci">static void tw_eventq_alloc(tw_eventq *q, unsigned int cnt)</div><div class="ttdef"><b>Definition:</b> <a href="tw-eventq_8h_source.html#l00186">tw-eventq.h:186</a></div></div>
<div class="ttc" id="structtw__kp_html_a9e8fe6319cfd909db8f50e29ce43b1fc"><div class="ttname"><a href="structtw__kp.html#a9e8fe6319cfd909db8f50e29ce43b1fc">tw_kp::pe</a></div><div class="ttdeci">tw_pe * pe</div><div class="ttdoc">PE that services this KP. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00342">ross-types.h:342</a></div></div>
<div class="ttc" id="structtw__pe_html_ad238a4127fa0eaee43605bcbc47bd73a"><div class="ttname"><a href="structtw__pe.html#ad238a4127fa0eaee43605bcbc47bd73a">tw_pe::delta_buffer</a></div><div class="ttdeci">unsigned char * delta_buffer[3]</div><div class="ttdoc">buffers used for delta encoding </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00388">ross-types.h:388</a></div></div>
<div class="ttc" id="ross-types_8h_html_aaff8ab0fbfb817463eb76a185abc50cbadc101ebf31c49c2d4b80b7c6f59f22cb"><div class="ttname"><a href="ross-types_8h.html#aaff8ab0fbfb817463eb76a185abc50cbadc101ebf31c49c2d4b80b7c6f59f22cb">LINEAR</a></div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00038">ross-types.h:38</a></div></div>
<div class="ttc" id="splay_8c_html_a3e01ce907630af7763047e4d9ba14693"><div class="ttname"><a href="splay_8c.html#a3e01ce907630af7763047e4d9ba14693">tw_pq_create</a></div><div class="ttdeci">tw_pq * tw_pq_create(void)</div><div class="ttdef"><b>Definition:</b> <a href="splay_8c_source.html#l00054">splay.c:54</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a1ebf9585a3de4d61c5fc050c7600fcd8"><div class="ttname"><a href="ross-extern_8h.html#a1ebf9585a3de4d61c5fc050c7600fcd8">tw_scheduler_optimistic</a></div><div class="ttdeci">void tw_scheduler_optimistic(tw_pe *me)</div><div class="ttdef"><b>Definition:</b> <a href="tw-sched_8c_source.html#l00634">tw-sched.c:634</a></div></div>
<div class="ttc" id="tw-setup_8c_html_ae29dd6eba29314361ef334f6bf028210"><div class="ttname"><a href="tw-setup_8c.html#ae29dd6eba29314361ef334f6bf028210">tw_define_lps</a></div><div class="ttdeci">void tw_define_lps(tw_lpid nlp, size_t msg_sz)</div><div class="ttdef"><b>Definition:</b> <a href="tw-setup_8c_source.html#l00218">tw-setup.c:218</a></div></div>
<div class="ttc" id="tw-opts_8h_html_aeb3c6cf7dfe9b1b9927905a7f5d86855"><div class="ttname"><a href="tw-opts_8h.html#aeb3c6cf7dfe9b1b9927905a7f5d86855">TWOPT_DOUBLE</a></div><div class="ttdeci">#define TWOPT_DOUBLE(n, v, h)</div><div class="ttdef"><b>Definition:</b> <a href="tw-opts_8h_source.html#l00032">tw-opts.h:32</a></div></div>
<div class="ttc" id="ross-types_8h_html_abea764c61c75c56008ccf665a71246fda7ff3894aed4e1746b6fb19f9472678c8"><div class="ttname"><a href="ross-types_8h.html#abea764c61c75c56008ccf665a71246fda7ff3894aed4e1746b6fb19f9472678c8">OPTIMISTIC</a></div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00030">ross-types.h:30</a></div></div>
<div class="ttc" id="aarch64_8h_html_a450cf25fa5291629087ca4198de55757"><div class="ttname"><a href="aarch64_8h.html#a450cf25fa5291629087ca4198de55757">tw_clock_read</a></div><div class="ttdeci">static tw_clock tw_clock_read(void)</div><div class="ttdef"><b>Definition:</b> <a href="aarch64_8h_source.html#l00006">aarch64.h:6</a></div></div>
<div class="ttc" id="mpi__allreduce_8c_html_a0609349515ccf596bffb1efb59ecd2ea"><div class="ttname"><a href="mpi__allreduce_8c.html#a0609349515ccf596bffb1efb59ecd2ea">tw_gvt_start</a></div><div class="ttdeci">void tw_gvt_start(void)</div><div class="ttdef"><b>Definition:</b> <a href="mpi__allreduce_8c_source.html#l00034">mpi_allreduce.c:34</a></div></div>
<div class="ttc" id="structtw__pe_html"><div class="ttname"><a href="structtw__pe.html">tw_pe</a></div><div class="ttdoc">Holds the entire PE state. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00375">ross-types.h:375</a></div></div>
<div class="ttc" id="network-mpi_8c_html_a3db61a41bb6a85964e22e5488038b02e"><div class="ttname"><a href="network-mpi_8c.html#a3db61a41bb6a85964e22e5488038b02e">tw_net_init</a></div><div class="ttdeci">const tw_optdef * tw_net_init(int *argc, char ***argv)</div><div class="ttdoc">Initalize the network library and parse options. </div><div class="ttdef"><b>Definition:</b> <a href="network-mpi_8c_source.html#l00066">network-mpi.c:66</a></div></div>
<div class="ttc" id="tw-eventq_8h_html_aecf7d4bfd567e6356033b8379f5ec3bd"><div class="ttname"><a href="tw-eventq_8h.html#aecf7d4bfd567e6356033b8379f5ec3bd">tw_eventq_shift</a></div><div class="ttdeci">static tw_event * tw_eventq_shift(tw_eventq *q)</div><div class="ttdef"><b>Definition:</b> <a href="tw-eventq_8h_source.html#l00353">tw-eventq.h:353</a></div></div>
<div class="ttc" id="structtw__statistics_html_ae069d860a0a90e7d8280c8ec74cb9432"><div class="ttname"><a href="structtw__statistics.html#ae069d860a0a90e7d8280c8ec74cb9432">tw_statistics::s_init</a></div><div class="ttdeci">tw_clock s_init</div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00135">ross-types.h:135</a></div></div>
<div class="ttc" id="structtw__optdef_html"><div class="ttname"><a href="structtw__optdef.html">tw_optdef</a></div><div class="ttdef"><b>Definition:</b> <a href="tw-opts_8h_source.html#l00019">tw-opts.h:19</a></div></div>
<div class="ttc" id="ross-extern_8h_html_ab8bd876929690758e922961bcc16cd64"><div class="ttname"><a href="ross-extern_8h.html#ab8bd876929690758e922961bcc16cd64">g_tw_nlp</a></div><div class="ttdeci">tw_lpid g_tw_nlp</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00023">ross-global.c:23</a></div></div>
<div class="ttc" id="network-mpi_8c_html_a2818efb70df48e5e29d3dacb3e2de009"><div class="ttname"><a href="network-mpi_8c.html#a2818efb70df48e5e29d3dacb3e2de009">tw_nnodes</a></div><div class="ttdeci">unsigned int tw_nnodes(void)</div><div class="ttdef"><b>Definition:</b> <a href="network-mpi_8c_source.html#l00103">network-mpi.c:103</a></div></div>
<div class="ttc" id="ross-extern_8h_html_acf6004787509f060f92d0edf8c2a4467"><div class="ttname"><a href="ross-extern_8h.html#acf6004787509f060f92d0edf8c2a4467">g_tw_delta_sz</a></div><div class="ttdeci">size_t g_tw_delta_sz</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00034">ross-global.c:34</a></div></div>
<div class="ttc" id="tw-opts_8h_html_a21cd827141f4fc64117c38b804846903"><div class="ttname"><a href="tw-opts_8h.html#a21cd827141f4fc64117c38b804846903">TWOPT_ULONGLONG</a></div><div class="ttdeci">#define TWOPT_ULONGLONG(n, v, h)</div><div class="ttdef"><b>Definition:</b> <a href="tw-opts_8h_source.html#l00029">tw-opts.h:29</a></div></div>
<div class="ttc" id="ross-extern_8h_html_af1158541bc133faae0dc87d8c319bec8"><div class="ttname"><a href="ross-extern_8h.html#af1158541bc133faae0dc87d8c319bec8">tw_lp_onpe</a></div><div class="ttdeci">void tw_lp_onpe(tw_lpid index, tw_pe *pe, tw_lpid id)</div><div class="ttdef"><b>Definition:</b> <a href="tw-lp_8c_source.html#l00057">tw-lp.c:57</a></div></div>
<div class="ttc" id="ross-kernel-inline_8h_html_a4066dfaca8faa4af256a377d85cea32f"><div class="ttname"><a href="ross-kernel-inline_8h.html#a4066dfaca8faa4af256a377d85cea32f">tw_getkp</a></div><div class="ttdeci">static tw_kp * tw_getkp(tw_kpid id)</div><div class="ttdef"><b>Definition:</b> <a href="ross-kernel-inline_8h_source.html#l00053">ross-kernel-inline.h:53</a></div></div>
<div class="ttc" id="tw-setup_8c_html_ad7c514cd29ed14a2698dc3f1c3a0203b"><div class="ttname"><a href="tw-setup_8c.html#ad7c514cd29ed14a2698dc3f1c3a0203b">nkp_per_pe</a></div><div class="ttdeci">unsigned int nkp_per_pe</div><div class="ttdef"><b>Definition:</b> <a href="tw-setup_8c_source.html#l00013">tw-setup.c:13</a></div></div>
<div class="ttc" id="structtw__pe_html_a0c3cba781d3d3836d9ebdd93d5be8be5"><div class="ttname"><a href="structtw__pe.html#a0c3cba781d3d3836d9ebdd93d5be8be5">tw_pe::free_q</a></div><div class="ttdeci">tw_eventq free_q</div><div class="ttdoc">Linked list of free tw_events. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00383">ross-types.h:383</a></div></div>
<div class="ttc" id="aarch64_8c_html_ad791d6ac5a640e8a175a13c72aa3d8e3"><div class="ttname"><a href="aarch64_8c.html#ad791d6ac5a640e8a175a13c72aa3d8e3">tw_clock_setup</a></div><div class="ttdeci">const tw_optdef * tw_clock_setup(void)</div><div class="ttdef"><b>Definition:</b> <a href="aarch64_8c_source.html#l00020">aarch64.c:20</a></div></div>
<div class="ttc" id="ross_8h_html_a911515dff2fb79886a16ed44df5f9d20"><div class="ttname"><a href="ross_8h.html#a911515dff2fb79886a16ed44df5f9d20">tw_lpid</a></div><div class="ttdeci">uint64_t tw_lpid</div><div class="ttdef"><b>Definition:</b> <a href="ross_8h_source.html#l00160">ross.h:160</a></div></div>
<div class="ttc" id="structtw__lptype_html"><div class="ttname"><a href="structtw__lptype.html">tw_lptype</a></div><div class="ttdoc">Function Pointers for ROSS Event Handlers. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00087">ross-types.h:87</a></div></div>
<div class="ttc" id="structtw__lp_html_a8028662b2668953fa9f49f2df7d00850"><div class="ttname"><a href="structtw__lp.html#a8028662b2668953fa9f49f2df7d00850">tw_lp::kp</a></div><div class="ttdeci">tw_kp * kp</div><div class="ttdoc">kp – Kernel process that we belong to (must match pe). </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00313">ross-types.h:313</a></div></div>
<div class="ttc" id="tw-setup_8c_html_a67a33e9fdd9f680a1790fece8b07699a"><div class="ttname"><a href="tw-setup_8c.html#a67a33e9fdd9f680a1790fece8b07699a">init_start</a></div><div class="ttdeci">static tw_clock init_start</div><div class="ttdef"><b>Definition:</b> <a href="tw-setup_8c_source.html#l00014">tw-setup.c:14</a></div></div>
<div class="ttc" id="specialized-lps_8c_html_a5d9446447f438f438da8795d29bdeee0"><div class="ttname"><a href="specialized-lps_8c.html#a5d9446447f438f438da8795d29bdeee0">specialized_lp_setup</a></div><div class="ttdeci">void specialized_lp_setup()</div><div class="ttdef"><b>Definition:</b> <a href="specialized-lps_8c_source.html#l00018">specialized-lps.c:18</a></div></div>
<div class="ttc" id="tw-setup_8c_html_a7d395f5590701f5526a161fcb1261b03"><div class="ttname"><a href="tw-setup_8c.html#a7d395f5590701f5526a161fcb1261b03">tw_init</a></div><div class="ttdeci">void tw_init(int *argc, char ***argv)</div><div class="ttdef"><b>Definition:</b> <a href="tw-setup_8c_source.html#l00033">tw-setup.c:33</a></div></div>
<div class="ttc" id="tw-setup_8c_html_ab70815e9b532e3d9a85c0a3366477def"><div class="ttname"><a href="tw-setup_8c.html#ab70815e9b532e3d9a85c0a3366477def">map_round_robin</a></div><div class="ttdeci">void map_round_robin(void)</div><div class="ttdef"><b>Definition:</b> <a href="tw-setup_8c_source.html#l00189">tw-setup.c:189</a></div></div>
<div class="ttc" id="specialized-lps_8c_html_abaecb255233b735460c8b9836547041e"><div class="ttname"><a href="specialized-lps_8c.html#abaecb255233b735460c8b9836547041e">g_st_analysis_nlp</a></div><div class="ttdeci">tw_lpid g_st_analysis_nlp</div><div class="ttdef"><b>Definition:</b> <a href="specialized-lps_8c_source.html#l00012">specialized-lps.c:12</a></div></div>
<div class="ttc" id="structtw__kp_html"><div class="ttname"><a href="structtw__kp.html">tw_kp</a></div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00340">ross-types.h:340</a></div></div>
<div class="ttc" id="lz4_8h_html"><div class="ttname"><a href="lz4_8h.html">lz4.h</a></div></div>
<div class="ttc" id="specialized-lps_8c_html_af684a7b76fde8ed0e32b8a155af94f92"><div class="ttname"><a href="specialized-lps_8c.html#af684a7b76fde8ed0e32b8a155af94f92">g_st_use_analysis_lps</a></div><div class="ttdeci">int g_st_use_analysis_lps</div><div class="ttdef"><b>Definition:</b> <a href="specialized-lps_8c_source.html#l00011">specialized-lps.c:11</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a17c791c2b25a6f00f8244f7f1244b9ca"><div class="ttname"><a href="ross-extern_8h.html#a17c791c2b25a6f00f8244f7f1244b9ca">g_tw_events_per_pe_extra</a></div><div class="ttdeci">unsigned int g_tw_events_per_pe_extra</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00078">ross-global.c:78</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a0cf427702daec5609d393c928ba6597d"><div class="ttname"><a href="ross-extern_8h.html#a0cf427702daec5609d393c928ba6597d">g_tw_buddy_master</a></div><div class="ttdeci">buddy_list_bucket_t * g_tw_buddy_master</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00036">ross-global.c:36</a></div></div>
<div class="ttc" id="tw-setup_8c_html_a84acee4f148fbd5a3ec9735cb877c12d"><div class="ttname"><a href="tw-setup_8c.html#a84acee4f148fbd5a3ec9735cb877c12d">late_sanity_check</a></div><div class="ttdeci">static void late_sanity_check(void)</div><div class="ttdef"><b>Definition:</b> <a href="tw-setup_8c_source.html#l00279">tw-setup.c:279</a></div></div>
<div class="ttc" id="structtw__pe_html_a76e88f72d90635b512db0ba17d570e2f"><div class="ttname"><a href="structtw__pe.html#a76e88f72d90635b512db0ba17d570e2f">tw_pe::abort_event</a></div><div class="ttdeci">tw_event * abort_event</div><div class="ttdoc">Placeholder event for when free_q is empty. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00384">ross-types.h:384</a></div></div>
<div class="ttc" id="tw-setup_8c_html_acd06dc2372c54c089852984132991b4e"><div class="ttname"><a href="tw-setup_8c.html#acd06dc2372c54c089852984132991b4e">tw_end</a></div><div class="ttdeci">void tw_end(void)</div><div class="ttdef"><b>Definition:</b> <a href="tw-setup_8c_source.html#l00420">tw-setup.c:420</a></div></div>
<div class="ttc" id="ross-extern_8h_html_ad2b9212f634d736cfcdf03b9a3b3a818"><div class="ttname"><a href="ross-extern_8h.html#ad2b9212f634d736cfcdf03b9a3b3a818">g_tw_mblock</a></div><div class="ttdeci">unsigned int g_tw_mblock</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00062">ross-global.c:62</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a8747c3bfc331d131dd546883b336feef"><div class="ttname"><a href="ross-extern_8h.html#a8747c3bfc331d131dd546883b336feef">g_tw_csv</a></div><div class="ttdeci">FILE * g_tw_csv</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00091">ross-global.c:91</a></div></div>
<div class="ttc" id="st-instrumentation_8c_html_a2141145e35484c4401c6786406afd224"><div class="ttname"><a href="st-instrumentation_8c.html#a2141145e35484c4401c6786406afd224">st_inst_init</a></div><div class="ttdeci">void st_inst_init(void)</div><div class="ttdef"><b>Definition:</b> <a href="st-instrumentation_8c_source.html#l00051">st-instrumentation.c:51</a></div></div>
<div class="ttc" id="ross-extern_8h_html_aaa99d77ef4fabc6101a812df84e52be1"><div class="ttname"><a href="ross-extern_8h.html#aaa99d77ef4fabc6101a812df84e52be1">g_tw_mapping</a></div><div class="ttdeci">tw_lp_map g_tw_mapping</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00021">ross-global.c:21</a></div></div>
<div class="ttc" id="ross-extern_8h_html_acd6509dd1d3e2ea0298ef3e2ecaf0ef0"><div class="ttname"><a href="ross-extern_8h.html#acd6509dd1d3e2ea0298ef3e2ecaf0ef0">g_tw_avl_node_count</a></div><div class="ttdeci">uint32_t g_tw_avl_node_count</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00037">ross-global.c:37</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a83ae3f8b8b94935a1dbdfa2d2552f508"><div class="ttname"><a href="ross-extern_8h.html#a83ae3f8b8b94935a1dbdfa2d2552f508">g_tw_mynode</a></div><div class="ttdeci">tw_peid g_tw_mynode</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00088">ross-global.c:88</a></div></div>
<div class="ttc" id="tw-opts_8h_html_a0d00417e3bef0d001f256f846c72838d"><div class="ttname"><a href="tw-opts_8h.html#a0d00417e3bef0d001f256f846c72838d">TWOPT_UINT</a></div><div class="ttdeci">#define TWOPT_UINT(n, v, h)</div><div class="ttdef"><b>Definition:</b> <a href="tw-opts_8h_source.html#l00030">tw-opts.h:30</a></div></div>
<div class="ttc" id="ross-extern_8h_html_abb6067d27f1c3e888c1d276490f28088"><div class="ttname"><a href="ross-extern_8h.html#abb6067d27f1c3e888c1d276490f28088">g_tw_masternode</a></div><div class="ttdeci">tw_peid g_tw_masternode</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00089">ross-global.c:89</a></div></div>
<div class="ttc" id="tw-opts_8h_html_a38209b0e7568d41f5448ae5f884290a4"><div class="ttname"><a href="tw-opts_8h.html#a38209b0e7568d41f5448ae5f884290a4">TWOPT_END</a></div><div class="ttdeci">#define TWOPT_END()</div><div class="ttdef"><b>Definition:</b> <a href="tw-opts_8h_source.html#l00035">tw-opts.h:35</a></div></div>
<div class="ttc" id="structtw__pe_html_a90e1dbe51a084d6e02580667159e13ff"><div class="ttname"><a href="structtw__pe.html#a90e1dbe51a084d6e02580667159e13ff">tw_pe::pq</a></div><div class="ttdeci">tw_pq * pq</div><div class="ttdoc">Priority queue used to sort events. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00381">ross-types.h:381</a></div></div>
<div class="ttc" id="ross-extern_8h_html_ab779ee7648ae0cf0931fce717b4401b6"><div class="ttname"><a href="ross-extern_8h.html#ab779ee7648ae0cf0931fce717b4401b6">tw_lp_onkp</a></div><div class="ttdeci">void tw_lp_onkp(tw_lp *lp, tw_kp *kp)</div><div class="ttdef"><b>Definition:</b> <a href="tw-lp_8c_source.html#l00073">tw-lp.c:73</a></div></div>
<div class="ttc" id="tw-opts_8c_html_adb4b8bc6800f3d900747d4adeda4ac92"><div class="ttname"><a href="tw-opts_8c.html#adb4b8bc6800f3d900747d4adeda4ac92">tw_opt_add</a></div><div class="ttdeci">void tw_opt_add(const tw_optdef *options)</div><div class="ttdef"><b>Definition:</b> <a href="tw-opts_8c_source.html#l00014">tw-opts.c:14</a></div></div>
<div class="ttc" id="ross-types_8h_html_abea764c61c75c56008ccf665a71246fda70cd78c3dbc0801ed52437fa82a6e8ef"><div class="ttname"><a href="ross-types_8h.html#abea764c61c75c56008ccf665a71246fda70cd78c3dbc0801ed52437fa82a6e8ef">CONSERVATIVE</a></div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00029">ross-types.h:29</a></div></div>
<div class="ttc" id="specialized-lps_8c_html_a0e12bafe1e2aa5c21f7544dfc358ecc3"><div class="ttname"><a href="specialized-lps_8c.html#a0e12bafe1e2aa5c21f7544dfc358ecc3">st_special_lp_opts</a></div><div class="ttdeci">const tw_optdef * st_special_lp_opts(void)</div><div class="ttdef"><b>Definition:</b> <a href="specialized-lps_8c_source.html#l00067">specialized-lps.c:67</a></div></div>
<div class="ttc" id="tw-eventq_8h_html_aa40bc1edebb9f58d87092388cf8dc0df"><div class="ttname"><a href="tw-eventq_8h.html#aa40bc1edebb9f58d87092388cf8dc0df">tw_eventq_pop</a></div><div class="ttdeci">static tw_event * tw_eventq_pop(tw_eventq *q)</div><div class="ttdef"><b>Definition:</b> <a href="tw-eventq_8h_source.html#l00289">tw-eventq.h:289</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a86d0fe2c4d7b1be618d6cce801f085ee"><div class="ttname"><a href="ross-extern_8h.html#a86d0fe2c4d7b1be618d6cce801f085ee">g_tw_buddy_alloc</a></div><div class="ttdeci">uint32_t g_tw_buddy_alloc</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00035">ross-global.c:35</a></div></div>
<div class="ttc" id="ross_8h_html"><div class="ttname"><a href="ross_8h.html">ross.h</a></div></div>
<div class="ttc" id="tw-eventq_8h_html_a5c324b9c5a53c17e78709fa7eaaa7a1f"><div class="ttname"><a href="tw-eventq_8h.html#a5c324b9c5a53c17e78709fa7eaaa7a1f">tw_eventq_push</a></div><div class="ttdeci">static void tw_eventq_push(tw_eventq *q, tw_event *e)</div><div class="ttdef"><b>Definition:</b> <a href="tw-eventq_8h_source.html#l00257">tw-eventq.h:257</a></div></div>
<div class="ttc" id="ross-extern_8h_html_ae19668282cb4aab245e2382eea8f1967"><div class="ttname"><a href="ross-extern_8h.html#ae19668282cb4aab245e2382eea8f1967">tw_scheduler_sequential</a></div><div class="ttdeci">void tw_scheduler_sequential(tw_pe *me)</div><div class="ttdef"><b>Definition:</b> <a href="tw-sched_8c_source.html#l00445">tw-sched.c:445</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a820169aae973ab223b08721ab0c87982"><div class="ttname"><a href="ross-extern_8h.html#a820169aae973ab223b08721ab0c87982">g_tw_custom_initial_mapping</a></div><div class="ttdeci">map_custom_f g_tw_custom_initial_mapping</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00020">ross-global.c:20</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a99999f4e30648f5007c61723c95a2d0e"><div class="ttname"><a href="ross-extern_8h.html#a99999f4e30648f5007c61723c95a2d0e">g_tw_nRNG_per_lp</a></div><div class="ttdeci">unsigned int g_tw_nRNG_per_lp</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00029">ross-global.c:29</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a2f67789cc425e7d839fa4b983f5b8505"><div class="ttname"><a href="ross-extern_8h.html#a2f67789cc425e7d839fa4b983f5b8505">g_tw_pe</a></div><div class="ttdeci">tw_pe * g_tw_pe</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00075">ross-global.c:75</a></div></div>
<div class="ttc" id="structtw__lp_html_a9fd32632e5c45a00faf16a6fd0814640"><div class="ttname"><a href="structtw__lp.html#a9fd32632e5c45a00faf16a6fd0814640">tw_lp::pe</a></div><div class="ttdeci">tw_pe * pe</div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00308">ross-types.h:308</a></div></div>
<div class="ttc" id="ross-extern_8h_html_ad49988d8dcde406fac7f4a2e11eac17f"><div class="ttname"><a href="ross-extern_8h.html#ad49988d8dcde406fac7f4a2e11eac17f">tw_scheduler_optimistic_debug</a></div><div class="ttdeci">void tw_scheduler_optimistic_debug(tw_pe *me)</div><div class="ttdef"><b>Definition:</b> <a href="tw-sched_8c_source.html#l00733">tw-sched.c:733</a></div></div>
<div class="ttc" id="structtw__lp_html_a66d6671f56c8ba0ebcb1fb89354e51b4"><div class="ttname"><a href="structtw__lp.html#a66d6671f56c8ba0ebcb1fb89354e51b4">tw_lp::id</a></div><div class="ttdeci">tw_lpid id</div><div class="ttdoc">local LP id </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00305">ross-types.h:305</a></div></div>
<div class="ttc" id="ross-types_8h_html_a1c8bf5a99e9de5022cdaa304f3979e57"><div class="ttname"><a href="ross-types_8h.html#a1c8bf5a99e9de5022cdaa304f3979e57">tw_kpid</a></div><div class="ttdeci">tw_peid tw_kpid</div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00045">ross-types.h:45</a></div></div>
<div class="ttc" id="avl__tree_8c_html_ac4c639748d4d5a271d6c54a18f614605"><div class="ttname"><a href="avl__tree_8c.html#ac4c639748d4d5a271d6c54a18f614605">pe</a></div><div class="ttdeci">tw_pe * pe</div><div class="ttdef"><b>Definition:</b> <a href="avl__tree_8c_source.html#l00011">avl_tree.c:11</a></div></div>
<div class="ttc" id="io-mpi_8c_html_a4c9ad55528f8f4bbfb46efc4c4b30acf"><div class="ttname"><a href="io-mpi_8c.html#a4c9ad55528f8f4bbfb46efc4c4b30acf">io_opts</a></div><div class="ttdeci">const tw_optdef io_opts[]</div><div class="ttdef"><b>Definition:</b> <a href="io-mpi_8c_source.html#l00012">io-mpi.c:12</a></div></div>
<div class="ttc" id="aarch64_8h_html_abcd6b97b84bebf1f961f85cd24b56c60"><div class="ttname"><a href="aarch64_8h.html#abcd6b97b84bebf1f961f85cd24b56c60">tw_clock</a></div><div class="ttdeci">uint64_t tw_clock</div><div class="ttdef"><b>Definition:</b> <a href="aarch64_8h_source.html#l00004">aarch64.h:4</a></div></div>
<div class="ttc" id="tw-opts_8h_html_a0e45b7a88a51dca3fe99d31aae9636c4"><div class="ttname"><a href="tw-opts_8h.html#a0e45b7a88a51dca3fe99d31aae9636c4">TWOPT_GROUP</a></div><div class="ttdeci">#define TWOPT_GROUP(h)</div><div class="ttdef"><b>Definition:</b> <a href="tw-opts_8h_source.html#l00027">tw-opts.h:27</a></div></div>
<div class="ttc" id="ross-types_8h_html_abea764c61c75c56008ccf665a71246fdacc902805d3a33320ec8f60c2add387ba"><div class="ttname"><a href="ross-types_8h.html#abea764c61c75c56008ccf665a71246fdacc902805d3a33320ec8f60c2add387ba">OPTIMISTIC_DEBUG</a></div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00031">ross-types.h:31</a></div></div>
<div class="ttc" id="ross-extern_8h_html_accfa49d85bd68f2c53d4a08cf64ace88"><div class="ttname"><a href="ross-extern_8h.html#accfa49d85bd68f2c53d4a08cf64ace88">tw_scheduler_optimistic_realtime</a></div><div class="ttdeci">void tw_scheduler_optimistic_realtime(tw_pe *me)</div><div class="ttdef"><b>Definition:</b> <a href="tw-sched_8c_source.html#l00680">tw-sched.c:680</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a9fccda7e36235fc0c8a49af29f470270"><div class="ttname"><a href="ross-extern_8h.html#a9fccda7e36235fc0c8a49af29f470270">g_tw_rng_default</a></div><div class="ttdeci">tw_lpid g_tw_rng_default</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00030">ross-global.c:30</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a4a237c68db5a0325e986d3710088d427"><div class="ttname"><a href="ross-extern_8h.html#a4a237c68db5a0325e986d3710088d427">g_tw_nkp</a></div><div class="ttdeci">tw_kpid g_tw_nkp</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00025">ross-global.c:25</a></div></div>
<div class="ttc" id="network-mpi_8c_html_a625a50a6a03701b067693d7dc5ed483b"><div class="ttname"><a href="network-mpi_8c.html#a625a50a6a03701b067693d7dc5ed483b">tw_net_start</a></div><div class="ttdeci">void tw_net_start(void)</div><div class="ttdoc">Starts the network library after option parsing. </div><div class="ttdef"><b>Definition:</b> <a href="network-mpi_8c_source.html#l00109">network-mpi.c:109</a></div></div>
<div class="ttc" id="specialized-lps_8c_html_aa3965326e96c2b9e5aba87f35ed2a896"><div class="ttname"><a href="specialized-lps_8c.html#aa3965326e96c2b9e5aba87f35ed2a896">specialized_lp_init_mapping</a></div><div class="ttdeci">void specialized_lp_init_mapping()</div><div class="ttdef"><b>Definition:</b> <a href="specialized-lps_8c_source.html#l00041">specialized-lps.c:41</a></div></div>
<div class="ttc" id="ross-extern_8h_html_aeb7d56717189f79b0199a840b0ae6629"><div class="ttname"><a href="ross-extern_8h.html#aeb7d56717189f79b0199a840b0ae6629">g_tw_max_opt_lookahead</a></div><div class="ttdeci">unsigned long long g_tw_max_opt_lookahead</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00064">ross-global.c:64</a></div></div>
<div class="ttc" id="lz4_8c_html_a2b09f5ca41ce609bb136d3637beffe04"><div class="ttname"><a href="lz4_8c.html#a2b09f5ca41ce609bb136d3637beffe04">LZ4_compressBound</a></div><div class="ttdeci">int LZ4_compressBound(int isize)</div><div class="ttdef"><b>Definition:</b> <a href="lz4_8c_source.html#l00372">lz4.c:372</a></div></div>
<div class="ttc" id="structtw__pe_html_a8a57f2123eddf6a195d82ecc781093e6"><div class="ttname"><a href="structtw__pe.html#a8a57f2123eddf6a195d82ecc781093e6">tw_pe::id</a></div><div class="ttdeci">tw_peid id</div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00376">ross-types.h:376</a></div></div>
<div class="ttc" id="ross-extern_8h_html_ae7357a99fcf58867f153cb7ab920b400"><div class="ttname"><a href="ross-extern_8h.html#ae7357a99fcf58867f153cb7ab920b400">tw_sched_init</a></div><div class="ttdeci">void tw_sched_init(tw_pe *me)</div><div class="ttdef"><b>Definition:</b> <a href="tw-sched_8c_source.html#l00404">tw-sched.c:404</a></div></div>
<div class="ttc" id="rand-clcg4_8c_html_a96c2fb54945c414a31ce0512c39622b0"><div class="ttname"><a href="rand-clcg4_8c.html#a96c2fb54945c414a31ce0512c39622b0">tw_rand_init_streams</a></div><div class="ttdeci">void tw_rand_init_streams(tw_lp *lp, unsigned int nstreams)</div><div class="ttdef"><b>Definition:</b> <a href="rand-clcg4_8c_source.html#l00320">rand-clcg4.c:320</a></div></div>
<div class="ttc" id="tw-setup_8c_html_a2dda8286172a4137c4c26649859aa61c"><div class="ttname"><a href="tw-setup_8c.html#a2dda8286172a4137c4c26649859aa61c">map_onetype</a></div><div class="ttdeci">tw_lpid map_onetype(tw_lpid gid)</div><div class="ttdef"><b>Definition:</b> <a href="tw-setup_8c_source.html#l00538">tw-setup.c:538</a></div></div>
<div class="ttc" id="ross-extern_8h_html_ab3e02a0e976921bd18a11b8b6a00c110"><div class="ttname"><a href="ross-extern_8h.html#ab3e02a0e976921bd18a11b8b6a00c110">tw_scheduler_conservative</a></div><div class="ttdeci">void tw_scheduler_conservative(tw_pe *me)</div><div class="ttdef"><b>Definition:</b> <a href="tw-sched_8c_source.html#l00514">tw-sched.c:514</a></div></div>
<div class="ttc" id="tw-setup_8c_html_a6dbc4bba03285bb1b8a8a5464f0375ea"><div class="ttname"><a href="tw-setup_8c.html#a6dbc4bba03285bb1b8a8a5464f0375ea">tw_run</a></div><div class="ttdeci">void tw_run(void)</div><div class="ttdef"><b>Definition:</b> <a href="tw-setup_8c_source.html#l00339">tw-setup.c:339</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a44046c72a5bace26ffd7c10ac06ba5f3"><div class="ttname"><a href="ross-extern_8h.html#a44046c72a5bace26ffd7c10ac06ba5f3">g_tw_lz4_knob</a></div><div class="ttdeci">unsigned int g_tw_lz4_knob</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00041">ross-global.c:41</a></div></div>
<div class="ttc" id="st-instrumentation_8h_html_acc40ff4e443edf9cfd1a2a1f5539a41d"><div class="ttname"><a href="st-instrumentation_8h.html#acc40ff4e443edf9cfd1a2a1f5539a41d">st_buffer_allocate</a></div><div class="ttdeci">void st_buffer_allocate()</div><div class="ttdef"><b>Definition:</b> <a href="st-stats-buffer_8c_source.html#l00016">st-stats-buffer.c:16</a></div></div>
<div class="ttc" id="tw-setup_8c_html_aec955754eb6d560d7bc1454aeaaa516f"><div class="ttname"><a href="tw-setup_8c.html#aec955754eb6d560d7bc1454aeaaa516f">map_linear</a></div><div class="ttdeci">void map_linear(void)</div><div class="ttdef"><b>Definition:</b> <a href="tw-setup_8c_source.html#l00135">tw-setup.c:135</a></div></div>
<div class="ttc" id="ross-extern_8h_html_ae6211f101eb9694fec8f350c874ba6cd"><div class="ttname"><a href="ross-extern_8h.html#ae6211f101eb9694fec8f350c874ba6cd">g_tw_lookahead</a></div><div class="ttdeci">double g_tw_lookahead</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00049">ross-global.c:49</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a445b1ed30cd2e8ef1f837e782a339a70"><div class="ttname"><a href="ross-extern_8h.html#a445b1ed30cd2e8ef1f837e782a339a70">tw_calloc</a></div><div class="ttdeci">void * tw_calloc(const char *file, int line, const char *for_who, size_t e_sz, size_t n)</div><div class="ttdef"><b>Definition:</b> <a href="tw-util_8c_source.html#l00203">tw-util.c:203</a></div></div>
<div class="ttc" id="tw-opts_8c_html_a0e72feddf001b8ffcaf47499f7f5d507"><div class="ttname"><a href="tw-opts_8c.html#a0e72feddf001b8ffcaf47499f7f5d507">tw_opt_parse</a></div><div class="ttdeci">void tw_opt_parse(int *argc_p, char ***argv_p)</div><div class="ttdef"><b>Definition:</b> <a href="tw-opts_8c_source.html#l00427">tw-opts.c:427</a></div></div>
<div class="ttc" id="tw-setup_8c_html_a83b28224a6806fcc16545a6aa8ea6ad3"><div class="ttname"><a href="tw-setup_8c.html#a83b28224a6806fcc16545a6aa8ea6ad3">tw_delta_alloc</a></div><div class="ttdeci">static void tw_delta_alloc(tw_pe *pe)</div><div class="ttdef"><b>Definition:</b> <a href="tw-setup_8c_source.html#l00440">tw-setup.c:440</a></div></div>
<div class="ttc" id="ross-types_8h_html_abea764c61c75c56008ccf665a71246fda65a00e65f23b13a6f19ea3e16f9b9e05"><div class="ttname"><a href="ross-types_8h.html#abea764c61c75c56008ccf665a71246fda65a00e65f23b13a6f19ea3e16f9b9e05">OPTIMISTIC_REALTIME</a></div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00032">ross-types.h:32</a></div></div>
<div class="ttc" id="buddy_8c_html_ac7158d51ffbe54dd3e04d6568f90c42c"><div class="ttname"><a href="buddy_8c.html#ac7158d51ffbe54dd3e04d6568f90c42c">create_buddy_table</a></div><div class="ttdeci">buddy_list_bucket_t * create_buddy_table(unsigned int power_of_two)</div><div class="ttdef"><b>Definition:</b> <a href="buddy_8c_source.html#l00288">buddy.c:288</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a57043bf25127f521210bbf779e283e13"><div class="ttname"><a href="ross-extern_8h.html#a57043bf25127f521210bbf779e283e13">g_tw_events_per_pe</a></div><div class="ttdeci">unsigned int g_tw_events_per_pe</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00076">ross-global.c:76</a></div></div>
<div class="ttc" id="io-mpi_8c_html_a643d9badf8f7f8eac1e3af3ce13be9c7"><div class="ttname"><a href="io-mpi_8c.html#a643d9badf8f7f8eac1e3af3ce13be9c7">g_io_events_buffered_per_rank</a></div><div class="ttdeci">int g_io_events_buffered_per_rank</div><div class="ttdef"><b>Definition:</b> <a href="io-mpi_8c_source.html#l00023">io-mpi.c:23</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a9fdd5173071664ba458fbd0d2419713e"><div class="ttname"><a href="ross-extern_8h.html#a9fdd5173071664ba458fbd0d2419713e">tw_printf</a></div><div class="ttdeci">void tw_printf(const char *file, int line, const char *fmt,...)</div><div class="ttdef"><b>Definition:</b> <a href="tw-util_8c_source.html#l00061">tw-util.c:61</a></div></div>
<div class="ttc" id="structtw__lp_html"><div class="ttname"><a href="structtw__lp.html">tw_lp</a></div><div class="ttdoc">LP State Structure. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00304">ross-types.h:304</a></div></div>
<div class="ttc" id="ross-types_8h_html_abea764c61c75c56008ccf665a71246fda6b834d43476553e583e0fde6578c82f0"><div class="ttname"><a href="ross-types_8h.html#abea764c61c75c56008ccf665a71246fda6b834d43476553e583e0fde6578c82f0">SEQUENTIAL</a></div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00028">ross-types.h:28</a></div></div>
<div class="ttc" id="tw-setup_8c_html_a33b10808894f8c4d429e391810d96e08"><div class="ttname"><a href="tw-setup_8c.html#a33b10808894f8c4d429e391810d96e08">setup_pes</a></div><div class="ttdeci">static tw_pe * setup_pes(void)</div><div class="ttdef"><b>Definition:</b> <a href="tw-setup_8c_source.html#l00448">tw-setup.c:448</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a64132b3acc0476622c31d7dc1676d227"><div class="ttname"><a href="ross-extern_8h.html#a64132b3acc0476622c31d7dc1676d227">g_tw_kp</a></div><div class="ttdeci">tw_kp ** g_tw_kp</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00027">ross-global.c:27</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
